[gnome-settings-daemon] media-keys: We always capture at least one key
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] media-keys: We always capture at least one key
- Date: Wed, 2 Nov 2011 20:13:27 +0000 (UTC)
commit 6ada4d8546436831a74b8cfbd9523c2c48528bb4
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 2 15:31:32 2011 +0000
media-keys: We always capture at least one key
When starting up, seeing as we have hard-coded keybindings
plugins/media-keys/gsd-media-keys-manager.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/plugins/media-keys/gsd-media-keys-manager.c b/plugins/media-keys/gsd-media-keys-manager.c
index 67e8f95..ce7a1af 100644
--- a/plugins/media-keys/gsd-media-keys-manager.c
+++ b/plugins/media-keys/gsd-media-keys-manager.c
@@ -382,7 +382,6 @@ static void
init_kbd (GsdMediaKeysManager *manager)
{
int i;
- gboolean need_flush = FALSE;
gnome_settings_profile_start (NULL);
@@ -400,12 +399,10 @@ init_kbd (GsdMediaKeysManager *manager)
g_ptr_array_add (manager->priv->keys, key);
- if (grab_media_key (key, manager))
- need_flush = TRUE;
+ grab_media_key (key, manager);
}
- if (need_flush)
- gdk_flush ();
+ gdk_flush ();
if (gdk_error_trap_pop ())
g_warning ("Grab failed for some keys, another application may already have access the them.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]