Commit graph

10 commits

Author SHA1 Message Date
Dana Jansens
be9637e403 Use the KeyCode to directly find the modifier mask. (Fix bug 5173)
We were finding the KeySym first, and then converting back to a modifier mask.
But KeySym on a key's release can differ from on its press, and we don't need
them to determine the modmask from the keycode.

[setxkbmap -option "grp:shifts_toggle"] turns Shift_L into XK_ISO_Prev_Group on
key release, and Shift_R into XK_ISO_Next_Group.
2012-09-30 14:48:04 -04:00
Dana Jansens
b7ddaa5728 get the modifier mask for a modifier key that is pressed/released more accurately, using the table we built already for other purposes 2010-02-19 16:59:28 -05:00
Dana Jansens
096dad0c6c make control keys work in menus/dialogs/etc with the new obt code, using XLookup stuff 2010-02-11 15:07:08 -05:00
Dana Jansens
41dbce908a make obt translate keypress events to a valid utf8 character (note this makes openbox not compile) 2010-02-11 14:06:00 -05:00
Dana Jansens
8f1ea42bb1 add interface in obt to create an Input Context for a window 2010-02-11 11:27:36 -05:00
Dana Jansens
50d6626811 Merge branch 'backport' into work
Conflicts:

	obt/keyboard.c
	obt/keyboard.h
	openbox/event.c
	openbox/menuframe.c
	openbox/moveresize.c
	openbox/openbox.c
	openbox/screen.c
2009-12-16 15:39:25 -05:00
Mikael Magnusson
9e05faf3d6 () -> (void) also in .h files, and fix a place that gave arguments when it shouldn't have. 2008-02-15 16:47:10 +01:00
Dana Jansens
ea481338b5 make the obt library branch compile again with all the changes merged in from backport 2008-01-20 01:36:56 -05:00
Dana Jansens
759e9f58a8 change openbox to use the libotk's keyboard.[ch] stuff instead of the old modkeys.[ch] and some of translate.[ch] 2008-01-20 01:36:55 -05:00
Dana Jansens
1aac72bc4c add keyboard.[ch] to libobt. these are for tracking modifier keys, and translating to/from keycodes/keysyms/modmasks (also include a new obt/internal.h for putting functions that are not public) 2008-01-20 01:36:55 -05:00