Skip to content

Commit 835b7c5

Browse files
authored
fix: update workspace switcher layout on monitors update signal (#11523)
When connecting a new monitor to the computer, the layout of the workspace-switcher applet would keep the same, now it will update whenever new monitors are added or removed
1 parent 7e211e2 commit 835b7c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

files/usr/share/cinnamon/applets/[email protected]/applet.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ class CinnamonWorkspaceSwitcher extends Applet.Applet {
282282

283283
this.actor.connect('scroll-event', this.hook.bind(this));
284284

285+
this.signals.connect(Main.layoutManager, 'monitors-changed', this.onWorkspacesUpdated, this);
286+
285287
this.queueCreateButtons();
286288
global.workspace_manager.connect('notify::n-workspaces', () => { this.onWorkspacesUpdated() });
287289
global.workspace_manager.connect('workspaces-reordered', () => { this.onWorkspacesUpdated() });

0 commit comments

Comments
 (0)