Skip to content

workspace: Handle window-added and removed signal after window tracker

The new window preview overlay requires getting the app icon for a window from the window tracker when it gets initialized. The window tracker listens for the same 'window-added' signal on the MetaWorkspace that the gnome-shell Workspace listens for to add the window preview.

The window tracker however reconnects all its signal handlers whenever the number of workspaces changes, which means that its signal handlers get called after the ones in Workspace ones. So by the time the 'window-added' handler in Workspace is called, the window tracker does not have an app associated with the window.

To fix this ensure that all window related signal handlers in Workspace are run after the ones in the window tracker.

Fixes #3656 (closed)

Merge request reports