plugins/synchronizeskipswitcher: Fix Window::skipTaskbarChanged handler

The Window::skipTaskbarChanged signal no longer has a Window argument.

BUG: 465600
This commit is contained in:
Vlad Zahorodnii 2024-08-26 13:34:46 +03:00
parent 276baa7dd5
commit a418d2f13e

View file

@ -6,13 +6,12 @@
SPDX-License-Identifier: GPL-2.0-or-later
*/
function synchronizeSwitcher(client) {
client.skipSwitcher = client.skipTaskbar;
}
function setupConnection(client) {
synchronizeSwitcher(client);
client.skipTaskbarChanged.connect(client, synchronizeSwitcher);
function setupConnection(window) {
window.skipSwitcher = window.skipTaskbar;
window.skipTaskbarChanged.connect(() => {
window.skipSwitcher = window.skipTaskbar;
});
}
workspace.windowAdded.connect(setupConnection);