3.34 grab_key_focus has no effect when a window is focused
Starting with 3.34 clutter_stage_set_key_focus
has no effect if an application window is focused.
To reproduce:
- open a Nautilus window
- open the looking glass
- run
imports.mainloop.timeout_add(5000, () => imports.ui.main.panel.statusArea.aggregateMenu.grab_key_focus())
- close the looking glass
- click on the Nautilus window
- the system menu doesn't receive focus when the 5 seconds timeout is reached
Now do the same without step 1 and 5 (have no window on the workspace). The system menu correctly receives the focus (The same was true in gnome-shell <= 3.32, with or without a window on the workspace).