From 2d98d9c57ba3fc41617c06af140a2a6cecf2b19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Fri, 18 Oct 2019 13:15:19 +0200 Subject: [PATCH] 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). --- topbar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/topbar.js b/topbar.js index a37c855..894276a 100644 --- a/topbar.js +++ b/topbar.js @@ -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); }