display: fix inverted check from 75184d4c55

I noticed it, Jasper noticed it, we agreed to change it, and then
I forgot to do it before pushing...
This commit is contained in:
Giovanni Campagna 2014-02-27 14:45:10 +01:00
parent b9a5d710b7
commit 89aa5df711

View File

@ -2388,7 +2388,7 @@ handle_input_xevent (MetaDisplay *display,
if (!window) if (!window)
{ {
/* Check if the window is a root window. */ /* Check if the window is a root window. */
if (enter_event->root == enter_event->event) if (enter_event->root != enter_event->event)
break; break;
if (enter_event->evtype == XI_FocusIn && if (enter_event->evtype == XI_FocusIn &&