display: Fix checks for KeyPress/ButtonPress
This commit is contained in:
parent
3283018bfb
commit
62b884dd42
1 changed files with 1 additions and 1 deletions
|
@ -2292,7 +2292,7 @@ event_callback (XEvent *event,
|
|||
XIEnterEvent *enter_event = (XIEnterEvent *) input_event;
|
||||
|
||||
if (window && !window->override_redirect &&
|
||||
((input_event->type == XI_KeyPress) || (input_event->type == XI_ButtonPress)))
|
||||
((input_event->evtype == XI_KeyPress) || (input_event->evtype == XI_ButtonPress)))
|
||||
{
|
||||
if (CurrentTime == display->current_time)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue