GNOME Bugzilla – Bug 394313
Send playback key events if no player listening
Last modified: 2007-02-09 17:02:48 UTC
+++ This bug was initially created as a clone of Bug #133815 +++ acme_filter_events() should be eating the keyboard presses for the old XF86* keyboard shortcuts, if there are clients capturing the playback keys, so that the players don't get both the key press, and the dbus signal.
I've retitled the patch properly, and attached the start of a patch. I've also removed a few people in the CC:, please re-add yourself if it was in error.
Created attachment 79777 [details] [review] gsd-send-key-events-if-no-player.patch
Bastien, is it sufficient to just check whether the gnome_settings_server->media_player != NULL to determine whether any apps are listening?
(In reply to comment #3) > Bastien, is it sufficient to just check whether the > gnome_settings_server->media_player != NULL to determine whether any apps are > listening? Yeah, should be.
Ok, um, then your patch is missing, like, 3 lines or so? I'm taking this, but I smell a trap...
Not sure why I didn't finish this patch :)
Created attachment 82048 [details] [review] eat media keys when someone's listening on the bus So, this should be the full thing, then?
.. except that the return value of gnome_settings_server_media_player_key_pressed needs to be inverted, of course. Still not short enough to not squeeze a bug in. Doh!
Looks good.
Ok, committed with the fix.