diff options
author | Havoc Pennington <hp@pobox.com> | 2002-06-09 03:44:16 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-06-09 03:44:16 +0000 |
commit | fb5a3a89989276bba163e33fb37a10c761ee9444 (patch) | |
tree | cd40e5b6f93cbdf04acb9fe401ba55c2c494a5aa /src/prefs.h | |
parent | 459d8f9c9de631d3c9ad0012109969ca61473bb6 (diff) | |
download | metacity-fb5a3a89989276bba163e33fb37a10c761ee9444.tar.gz |
Apply big patch from blackc@speakeasy.net adding a popup window to the
2002-06-08 Havoc Pennington <hp@pobox.com>
Apply big patch from blackc@speakeasy.net adding a popup window
to the Ctrl+Alt+arrows shortcuts. #83940
2002-06-08 Havoc Pennington <hp@pobox.com>
* src/screen.c (meta_screen_new): select key press/release on the
display->no_focus_window, another attempted fix for not getting
keybindings when no window is focused. Still doesn't seem to work
though. I don't get what's going wrong.
(meta_create_offscreen_window): new function, used instead of
XCreateSimpleWindow so we get override redirect offscreen windows.
Diffstat (limited to 'src/prefs.h')
-rw-r--r-- | src/prefs.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/prefs.h b/src/prefs.h index 5531c1bf..e273acb7 100644 --- a/src/prefs.h +++ b/src/prefs.h @@ -113,6 +113,31 @@ void meta_prefs_set_num_workspaces (int n_workspaces); #define META_KEYBINDING_MOVE_WORKSPACE_DOWN "move_to_workspace_down" #define META_KEYBINDING_RAISE_OR_LOWER "raise_or_lower" +typedef enum _MetaKeyBindingAction +{ + META_KEYBINDING_ACTION_NONE = -1, + META_KEYBINDING_ACTION_WORKSPACE_1, + META_KEYBINDING_ACTION_WORKSPACE_2, + META_KEYBINDING_ACTION_WORKSPACE_3, + META_KEYBINDING_ACTION_WORKSPACE_4, + META_KEYBINDING_ACTION_WORKSPACE_5, + META_KEYBINDING_ACTION_WORKSPACE_6, + META_KEYBINDING_ACTION_WORKSPACE_7, + META_KEYBINDING_ACTION_WORKSPACE_8, + META_KEYBINDING_ACTION_WORKSPACE_9, + META_KEYBINDING_ACTION_WORKSPACE_10, + META_KEYBINDING_ACTION_WORKSPACE_11, + META_KEYBINDING_ACTION_WORKSPACE_12, + META_KEYBINDING_ACTION_WORKSPACE_LEFT, + META_KEYBINDING_ACTION_WORKSPACE_RIGHT, + META_KEYBINDING_ACTION_WORKSPACE_UP, + META_KEYBINDING_ACTION_WORKSPACE_DOWN, + META_KEYBINDING_ACTION_SWITCH_WINDOWS, + META_KEYBINDING_ACTION_SWITCH_PANELS, + META_KEYBINDING_ACTION_FOCUS_PREVIOUS, + META_KEYBINDING_ACTION_SHOW_DESKTOP +} MetaKeyBindingAction; + typedef struct { const char *name; @@ -124,6 +149,7 @@ void meta_prefs_get_screen_bindings (const MetaKeyPref **bindings, int *n_bindings); void meta_prefs_get_window_bindings (const MetaKeyPref **bindings, int *n_bindings); +MetaKeyBindingAction meta_prefs_get_keybinding_action (unsigned int keysym); #endif |