Commit 487a936e authored by Bastien Nocera's avatar Bastien Nocera

media-keys: Fix launched apps not getting focused

Use the timestamp passed by newer versions of mutter/gnome-shell
to launch applications. This should make them focus correctly when
parent 8abc8d37
......@@ -2127,6 +2127,7 @@ static void
on_accelerator_activated (ShellKeyGrabber *grabber,
guint accel_id,
guint deviceid,
guint timestamp,
GsdMediaKeysManager *manager)
guint i;
......@@ -2140,9 +2141,9 @@ on_accelerator_activated (ShellKeyGrabber *grabber,
if (key->key_type == CUSTOM_KEY)
do_custom_action (manager, deviceid, key, GDK_CURRENT_TIME);
do_custom_action (manager, deviceid, key, timestamp);
do_action (manager, deviceid, key->key_type, GDK_CURRENT_TIME);
do_action (manager, deviceid, key->key_type, timestamp);
......@@ -17,6 +17,7 @@
<signal name="AcceleratorActivated">
<arg type="u" name="action"/>
<arg type="u" name="device"/>
<arg type="u" name="timestamp"/>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment