window-list: Complete move to connectObject()

Commit 3bfaf6f88a removed the explicit disconnect, but forgot
to use connectObject() to connect the handler.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/issues/459
Fixes: 3bfaf6f8 ("js: Use connectObject()")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/281>
This commit is contained in:
Florian Müllner
2023-10-09 15:26:25 +02:00
parent f576f1b1b6
commit fb858ed0e4

View File

@@ -828,8 +828,8 @@ class WindowList extends St.Widget {
}, this);
this._windowSignals = new Map();
this._windowCreatedId = global.display.connect(
'window-created', (dsp, win) => this._addWindow(win));
global.display.connectObject(
'window-created', (dsp, win) => this._addWindow(win), this);
Main.xdndHandler.connectObject(
'drag-begin', () => this._monitorDrag(),