mirror of
https://github.com/gosticks/PaperWM.git
synced 2026-12-04 04:11:38 +00:00
workspace menu: Focus workspace name on open
For some reason activation doesn't work immediately on `_onOpenStateChanged`, so we need an idle_add (like gpaste).
This commit is contained in:
@@ -455,6 +455,7 @@ class WorkspaceMenu extends PanelMenu.Button {
|
||||
|
||||
let space = Tiling.spaces.spaceOf(workspaceManager.get_active_workspace());
|
||||
this.entry.label.text = space.name;
|
||||
GLib.idle_add(GLib.PRIORITY_DEFAULT, this.entry.activate.bind(this.entry));
|
||||
|
||||
this._zenItem._switch.setToggleState(!space.showTopBar);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user