shell/window-tracker: Disconnect signals on disposal

We always leak this, so this has no effect right now, but will in a
follow up commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>
This commit is contained in:
Jonas Ådahl 2023-03-24 10:18:08 +01:00
parent 728a94dead
commit 517482b562

View File

@ -622,10 +622,12 @@ init_window_tracking (ShellWindowTracker *self)
{
MetaDisplay *display = shell_global_get_display (shell_global_get ());
g_signal_connect (display, "notify::focus-window",
G_CALLBACK (on_focus_window_changed), self);
g_signal_connect(display, "window-created",
G_CALLBACK (on_window_created), self);
g_signal_connect_object (display, "notify::focus-window",
G_CALLBACK (on_focus_window_changed), self,
G_CONNECT_DEFAULT);
g_signal_connect_object (display, "window-created",
G_CALLBACK (on_window_created), self,
G_CONNECT_DEFAULT);
}
static void