Same for the event one

This commit is contained in:
Martin Duquesnoy 2012-06-22 19:09:13 +02:00
parent 018176c4ef
commit e15c1936ac
2 changed files with 3 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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