mirror of
https://github.com/dylanaraps/sowm.git
synced 2025-05-19 09:30:24 -07:00
catwm: Fix keysyms
This commit is contained in:
parent
6c522968d6
commit
45feb5495f
3
catwm.c
3
catwm.c
@ -30,6 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/XKBlib.h>
|
||||
#include <X11/keysym.h>
|
||||
#include <X11/XF86keysym.h>
|
||||
#include <stdio.h>
|
||||
@ -289,7 +290,7 @@ void increase() {
|
||||
void keypress(XEvent *e) {
|
||||
int i;
|
||||
XKeyEvent ke = e->xkey;
|
||||
KeySym keysym = XKeycodeToKeysym(dis,ke.keycode,0);
|
||||
KeySym keysym = XkbKeycodeToKeysym(dis,ke.keycode,0,0);
|
||||
|
||||
for(i=0;i<TABLENGTH(keys);++i) {
|
||||
if(keys[i].keysym == keysym && keys[i].mod == ke.state) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user