Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e02fed
)
convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym
author
David Hill
<dhill@conformal.com>
Wed, 16 May 2012 04:22:59 +0000
(
00:22
-0400)
committer
David Hill
<dhill@conformal.com>
Wed, 16 May 2012 04:22:59 +0000
(
00:22
-0400)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
62dd195
..
1002ee6
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-88,6
+88,7
@@
#include <X11/cursorfont.h>
#include <X11/keysym.h>
#include <X11/cursorfont.h>
#include <X11/keysym.h>
+#include <X11/XKBlib.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>
#include <X11/Xlib.h>
#include <X11/Xproto.h>
@@
-6155,7
+6156,7
@@
keypress(XEvent *e)
struct key *kp;
struct swm_region *r;
struct key *kp;
struct swm_region *r;
- keysym = XKeycodeToKeysym(display, (KeyCode)ev->keycode, 0);
+ keysym = XkbKeycodeToKeysym(display, (KeyCode)ev->keycode, 0, 0);
if ((kp = key_lookup(CLEANMASK(ev->state), keysym)) == NULL)
return;
if (keyfuncs[kp->funcid].func == NULL)
if ((kp = key_lookup(CLEANMASK(ev->state), keysym)) == NULL)
return;
if (keyfuncs[kp->funcid].func == NULL)