mirror of
https://github.com/vale981/spectrwm
synced 2025-03-05 18:01:37 -05:00
convert XkbKeycodeToKeysym to xcb
This commit is contained in:
parent
404594c487
commit
4c05d42a78
1 changed files with 3 additions and 3 deletions
|
@ -6697,12 +6697,12 @@ expose(xcb_expose_event_t *e)
|
||||||
void
|
void
|
||||||
keypress(xcb_key_press_event_t *e)
|
keypress(xcb_key_press_event_t *e)
|
||||||
{
|
{
|
||||||
KeySym keysym;
|
xcb_keysym_t keysym;
|
||||||
struct key *kp;
|
struct key *kp;
|
||||||
|
|
||||||
keysym = XkbKeycodeToKeysym(display, (KeyCode)e->detail, 0, 0);
|
keysym = xcb_key_press_lookup_keysym(syms, e, 0);
|
||||||
|
|
||||||
DNPRINTF(SWM_D_EVENT, "keypress: %u\n", e->detail);
|
DNPRINTF(SWM_D_EVENT, "keypress: %u %u\n", e->detail, keysym);
|
||||||
|
|
||||||
if ((kp = key_lookup(CLEANMASK(e->state), keysym)) == NULL)
|
if ((kp = key_lookup(CLEANMASK(e->state), keysym)) == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue