Mutter shares most (currently all) its keybindings with Metacity, and uses the same /apps/metacity GConf keys. For 2.28, the schemas stay in Metacity; the eventual plan is to have a gnome-wm-data package. This patch allows a window manager to put a _GNOME_WM_KEYBINDINGS property on its _NET_SUPPORTING_WM_CHECK window to provide a comma separated list of window manager names to use for keybinding lookup instead of _NET_WM_NAME. http://bugzilla.gnome.org/show_bug.cgi?id=594066
17 lines
504 B
C
17 lines
504 B
C
#ifndef WM_COMMON_H
|
|
#define WM_COMMON_H
|
|
|
|
#define WM_COMMON_METACITY "Metacity"
|
|
#define WM_COMMON_SAWFISH "Sawfish"
|
|
#define WM_COMMON_UNKNOWN "Unknown"
|
|
|
|
gchar *wm_common_get_current_window_manager (void);
|
|
/* Returns a strv of keybinding names for the window manager;
|
|
* using _GNOME_WM_KEYBINDINGS if available, _NET_WM_NAME otherwise. */
|
|
char **wm_common_get_current_keybindings (void);
|
|
|
|
void wm_common_register_window_manager_change (GFunc func,
|
|
gpointer data);
|
|
|
|
#endif /* WM_COMMON_H */
|
|
|