Skip to content

Commit 5d16800

Browse files
committed
Refresh all workspaces when the title display setting is changed
This works well enough and guarantees all workspaces are in the same state both when enabling and disabling the title display options.
1 parent 5e15ba5 commit 5d16800

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

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

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -622,21 +622,8 @@ class GroupedWindowListApplet extends Applet.Applet {
622622
}
623623

624624
updateTitleDisplay(titleDisplay) {
625-
if (titleDisplay === TitleDisplay.None
626-
|| this.state.lastTitleDisplay === TitleDisplay.None) {
627-
this.refreshCurrentWorkspace();
628-
}
629-
630-
this.workspaces.forEach( workspace => {
631-
workspace.appGroups.forEach( appGroup => {
632-
if (titleDisplay === TitleDisplay.Focused) {
633-
appGroup.hideLabel();
634-
}
635-
appGroup.handleTitleDisplayChange();
636-
});
637-
});
638-
639625
this.state.set({lastTitleDisplay: titleDisplay});
626+
this.refreshAllWorkspaces();
640627
}
641628

642629
getAppFromWindow(metaWindow) {

0 commit comments

Comments
 (0)