Skip to content

Commit ebc3a30

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 8733de3 commit ebc3a30

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
@@ -623,21 +623,8 @@ class GroupedWindowListApplet extends Applet.Applet {
623623
}
624624

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

643630
getAppFromWindow(metaWindow) {

0 commit comments

Comments
 (0)