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:
Tor Hedin Brønner
2019-10-21 12:47:39 +02:00
parent 02dd23bfd2
commit 2d98d9c57b
+1
View File
@@ -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);
}