Peter Åstrand
d6797e53b4
Fix compile failure when X_HAVE_UTF8_STRING is not defined
2014-10-28 04:14:24 +01:00
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
14deacc8f3
Remove unused variable
2011-10-16 18:51:51 -04:00
Dana Jansens
f14bf9cac2
don't free the XIC if it wasn't created. this appears to cause a crash
2011-01-24 14:19:23 -05:00
Mikael Magnusson
670ff8b4b8
Fix a copypasto that broke interactive keybinds with meta and hyper keys
2010-09-16 17:24:12 +02:00
Dana Jansens
ab7673c816
remove a debug print in the keyboard obt stuff
2010-05-17 19:34:41 -04:00
Dana Jansens
59c831642a
make array large enough
2010-02-19 17:17:14 -05: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
890e13b919
use g_slice_new() instead of g_new() part 3
2010-02-12 14:03:24 -05:00
Dana Jansens
7c2eb3a781
destroy XIC's that belong to an XIM before closing the XIM, else Xlib will seggie!
2010-02-12 09:37:46 -05:00
Dana Jansens
35ce211ec3
dont print warnings when reading keys which dont generate text
2010-02-11 15:15:01 -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
6e280e9f53
create an X Input Method in obt for the app to use for all input
2010-02-11 11:16:17 -05:00
Dana Jansens
e9070fe7da
dont assert when there is no valid key layout present
2010-02-09 21:01:58 -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
0ffd1ccc47
() -> (void)
2008-02-15 16:21:35 +01:00
Dana Jansens
46cf95d36b
make menu event handling work more like how other events are handled, less special-casey
2008-01-31 12:25:30 -05: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