Skip to content
  • Matthias Clasen's avatar
    Add support for extra virtual modifiers: (#85780, Owen Taylor) · 543ce674
    Matthias Clasen authored
    2005-09-06  Matthias Clasen  <mclasen@redhat.com>
    
    	Add support for extra virtual modifiers:  (#85780, Owen Taylor)
    
    	* gdk/x11/gdkkeys-x11.c (struct _GdkKeymapX11): Add a
    	modmap to maintain the information which X modifiers map to
    	virtual modifiers.
    	(get_xkb): Set up the modmap from the XKB tables.
    	(update_keymaps): Set up the modmap from the information returned
    	by XGetModifierMapping in the non-XKB case.
    
    	* gdk/x11/gdkprivate-x11.h:
    	* gdk/x11/gdkkeys-x11.c (_gdk_keymap_add_virtual_modifiers): New
    	function to set the virtual modifiers in the state.
    
    	* gdk/x11/gdkevents-x11.c (translate_key_event): Call
    	_gdk_keymap_add_virtual_modifiers here.
    
    	* gdk/gdktypes.h (GdkModifierType): Add bits for virtual Super,
    	Hyper and Meta modifiers. Also add GDK_ALT_MASK as an alias
    	for GDK_MOD1_MASK.
    543ce674
To find the state of this project's repository at the time of any of these versions, check out the tags.