Same for the event one
This commit is contained in:
parent
018176c4ef
commit
e15c1936ac
@ -347,7 +347,7 @@ static void
|
|||||||
event_keypress(XEvent *e)
|
event_keypress(XEvent *e)
|
||||||
{
|
{
|
||||||
XKeyPressedEvent *ev = &e->xkey;
|
XKeyPressedEvent *ev = &e->xkey;
|
||||||
KeySym keysym = XKeycodeToKeysym(EVDPY(e), (KeyCode)ev->keycode, 0);
|
KeySym keysym = XkbKeycodeToKeysym(EVDPY(e), (KeyCode)ev->keycode, 0, 0);
|
||||||
struct keybind *k;
|
struct keybind *k;
|
||||||
|
|
||||||
screen_update_sel();
|
screen_update_sel();
|
||||||
@ -434,4 +434,3 @@ event_init(void)
|
|||||||
event_handle[SelectionClear] = event_selectionclearevent;
|
event_handle[SelectionClear] = event_selectionclearevent;
|
||||||
event_handle[UnmapNotify] = event_unmapnotify;
|
event_handle[UnmapNotify] = event_unmapnotify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,8 @@
|
|||||||
#ifndef EVENT_H
|
#ifndef EVENT_H
|
||||||
#define EVENT_H
|
#define EVENT_H
|
||||||
|
|
||||||
|
#include <X11/XKBlib.h>
|
||||||
|
|
||||||
#include "wmfs.h"
|
#include "wmfs.h"
|
||||||
|
|
||||||
#define MAX_EV 256
|
#define MAX_EV 256
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user