[mutter] Export a _GNOME_WM_KEYBINDINGS property
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mutter] Export a _GNOME_WM_KEYBINDINGS property
- Date: Fri, 4 Sep 2009 22:28:36 +0000 (UTC)
commit 0b86343dd080d8cc9ab8dc88f9478ebb0baeb040
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Thu Sep 3 14:43:49 2009 -0400
Export a _GNOME_WM_KEYBINDINGS property
We need a way to indicate to gnome-control-center that we want the
keybindings capplet to show the Window Manager keybindings for Metacity;
do this through a _GNOME_WM_KEYBINDING property we put on the
_NET_SUPPORTING_WM_CHECK window and set to Mutter,Metacity.
See http://bugzilla.gnome.org/show_bug.cgi?id=594066 for the
gnome-control-center part of this.
http://bugzilla.gnome.org/show_bug.cgi?id=594067
src/core/display.c | 7 +++++++
src/include/atomnames.h | 1 +
2 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 0f92edb..f21e563 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -722,6 +722,13 @@ meta_display_open (void)
the_display->leader_window,
the_display->atom__NET_WM_NAME,
"Mutter");
+
+ /* The GNOME keybindings capplet should include both the Mutter and Metacity
+ * keybindings */
+ meta_prop_set_utf8_string_hint (the_display,
+ the_display->leader_window,
+ the_display->atom__GNOME_WM_KEYBINDINGS,
+ "Mutter,Metacity");
meta_prop_set_utf8_string_hint (the_display,
the_display->leader_window,
diff --git a/src/include/atomnames.h b/src/include/atomnames.h
index 38ece97..b5fbfb9 100644
--- a/src/include/atomnames.h
+++ b/src/include/atomnames.h
@@ -58,6 +58,7 @@ item(_MUTTER_RESTART_MESSAGE)
item(_MUTTER_RELOAD_THEME_MESSAGE)
item(_MUTTER_SET_KEYBINDINGS_MESSAGE)
item(_MUTTER_TOGGLE_VERBOSE)
+item(_GNOME_WM_KEYBINDINGS)
item(_GNOME_PANEL_ACTION)
item(_GNOME_PANEL_ACTION_MAIN_MENU)
item(_GNOME_PANEL_ACTION_RUN_DIALOG)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]