Red Hat Bugzilla – Bug 969021
Some windows not receiving focus when opened with keyboard shortcuts
Last modified: 2014-02-23 10:17:41 EST
Using custom keyboard shortcuts to open applications seems to result in some applications not receiving focus.
Opening Firefox or Nautilus/Files using a custom keyboard shortcut (such as Alt-B) on an empty workspace starts the application, but the new window does not receive focus until you click. This is different from the behaviour in Fedora 18 (with gnome-shell 3.6.x), where the new window would immediately receive focus.
Using the mouse to open Firefox or Nautilus gives it focus straight away, so the problem seems to be only when using keyboard shortcuts.
Strangely, opening gnome-terminal using a custom keyboard shortcut doesn't result in the same symptoms. It receives focus immediately. So apparently not all applications are affected.
Fedora 19 x86_64
"halfline" on fedora-devel IRC mentioned the following:
looks like a settings-daemon bug
do_custom_action (GsdMediaKeysManager *manager,
g_debug ("Launching custom action for key (on device id %d)", deviceid);
execute (manager, key->custom_command, FALSE);
timestamp is getting thrown away
and it's getting hardcoded to GDK_CURRENT_TIME anyway:
do_custom_action (manager, deviceid, key, GDK_CURRENT_TIME);
Also reported upstream:
This happens to me, when I open the calculator by the calculator key on the keyboard.
var/log/messages contains the following warning:
/etc/gdm/Xsession: Window manager warning: Got a request to focus the no_focus_window with a timestamp of 0. This shouldn't happen!
Please note: It seems, that bug 949980 is a duplicate of this one
*** Bug 949980 has been marked as a duplicate of this bug. ***
Looks like this has been fixed upstream. The fix will make it into GNOME 3.10.