diff options
author | Havoc Pennington <hp@pobox.com> | 2002-07-14 03:16:41 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-07-14 03:16:41 +0000 |
commit | 812f7830849839e0bb562968cc9406f7821f1c19 (patch) | |
tree | 20e02998e87839c8a22ba6088b03838feb2277e0 /src/common.h | |
parent | 826a0c4e10c2737ef888d3782eb84cf66747b911 (diff) | |
download | mutter-812f7830849839e0bb562968cc9406f7821f1c19.tar.gz |
adapt to virtual modifiers (meta_display_process_mapping_event): we need
2002-07-13 Havoc Pennington <hp@pobox.com>
* src/keybindings.c: adapt to virtual modifiers
(meta_display_process_mapping_event): we need to reload the
binding tables now when the modmap changes.
* src/prefs.c (update_binding): parse virtual modifiers, not
plain modmask
* src/common.h (MetaVirtualModifer): new enum
* src/ui.c (meta_ui_parse_accelerator): use
egg_accelerator_parse_virtual()
* src/Makefile.am: add eggaccelerators.[hc] for the virtual
accelerator parsing function
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 0cc643227..dc54bbe04 100644 --- a/src/common.h +++ b/src/common.h @@ -150,6 +150,23 @@ typedef enum META_FRAME_TYPE_LAST } MetaFrameType; +typedef enum +{ + /* Create gratuitous divergence from regular + * X mod bits, to be sure we find bugs + */ + META_VIRTUAL_SHIFT_MASK = 1 << 5, + META_VIRTUAL_CONTROL_MASK = 1 << 6, + META_VIRTUAL_ALT_MASK = 1 << 7, + META_VIRTUAL_META_MASK = 1 << 8, + META_VIRTUAL_SUPER_MASK = 1 << 9, + META_VIRTUAL_HYPER_MASK = 1 << 10, + META_VIRTUAL_MOD2_MASK = 1 << 11, + META_VIRTUAL_MOD3_MASK = 1 << 12, + META_VIRTUAL_MOD4_MASK = 1 << 13, + META_VIRTUAL_MOD5_MASK = 1 << 14 +} MetaVirtualModifier; + /* should investigate changing these to whatever most apps use */ #define META_ICON_WIDTH 32 #define META_ICON_HEIGHT 32 |