mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 07:26:51 -05:00
display: Fix checks for KeyPress/ButtonPress
This commit is contained in:
parent
3283018bfb
commit
62b884dd42
@ -2292,7 +2292,7 @@ event_callback (XEvent *event,
|
|||||||
XIEnterEvent *enter_event = (XIEnterEvent *) input_event;
|
XIEnterEvent *enter_event = (XIEnterEvent *) input_event;
|
||||||
|
|
||||||
if (window && !window->override_redirect &&
|
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)
|
if (CurrentTime == display->current_time)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user