mirror of
https://github.com/dylanaraps/sowm.git
synced 2026-11-20 19:52:14 +00:00
catwm: Fix keysyms
This commit is contained in:
1 parent
6c522968d6
commit
45feb5495f
1 file changed
+2
-1
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
#include <X11/XF86keysym.h>
|
#include <X11/XF86keysym.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -289,7 +290,7 @@ void increase() {
|
|||||||
void keypress(XEvent *e) {
|
void keypress(XEvent *e) {
|
||||||
int i;
|
int i;
|
||||||
XKeyEvent ke = e->xkey;
|
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) {
|
for(i=0;i<TABLENGTH(keys);++i) {
|
||||||
if(keys[i].keysym == keysym && keys[i].mod == ke.state) {
|
if(keys[i].keysym == keysym && keys[i].mod == ke.state) {
|
||||||
|
|||||||
Reference in new issue
Block a user