backend-x11: Adapt commit 55fd05ea5 to the 3-16 branch

Still only compile-tested, but I was asked repeatedly to apply this
patch to 3-16, so let's try again ...
This commit is contained in:
Florian Müllner 2015-08-02 22:16:23 +02:00
parent f4d9153e5f
commit 833c6e2263

View File

@ -141,7 +141,15 @@ translate_crossing_event (MetaBackendX11 *x11,
return;
}
enter_event->event = meta_backend_x11_get_xwindow (x11);
Window stage_window = meta_backend_x11_get_xwindow (x11);
if (enter_event->event != stage_window)
{
/* See above for the rationale for this... */
g_assert (!meta_is_wayland_compositor ());
enter_event->event = meta_backend_x11_get_xwindow (x11);
enter_event->event_x = enter_event->root_x;
enter_event->event_y = enter_event->root_y;
}
}
static void