mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-10-01 05:25:23 +07:00
catwm: Fix keysyms
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user