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 SPDX-License-Identifier: GPL-2.0-or-later
*/ */
function synchronizeSwitcher(client) {
client.skipSwitcher = client.skipTaskbar;
}
function setupConnection(client) { function setupConnection(window) {
synchronizeSwitcher(client); window.skipSwitcher = window.skipTaskbar;
client.skipTaskbarChanged.connect(client, synchronizeSwitcher); window.skipTaskbarChanged.connect(() => {
window.skipSwitcher = window.skipTaskbar;
});
} }
workspace.windowAdded.connect(setupConnection); workspace.windowAdded.connect(setupConnection);