backend-x11: Don't assert on something that might happen
While we shouldn't normally receive crossing events for any windows except the stage when running nested, we do in case we hold a pointer grab - just ignore those events instead of taking down the user's session.
This commit is contained in:
parent
038f828ab1
commit
cba2ab445e
@ -155,10 +155,9 @@ translate_crossing_event (MetaBackendX11 *x11,
|
||||
}
|
||||
|
||||
Window stage_window = meta_backend_x11_get_xwindow (x11);
|
||||
if (enter_event->event != stage_window)
|
||||
if (enter_event->event != stage_window &&
|
||||
priv->mode == META_BACKEND_X11_MODE_COMPOSITOR)
|
||||
{
|
||||
/* See above for the rationale for this... */
|
||||
g_assert (priv->mode == META_BACKEND_X11_MODE_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;
|
||||
|
Loading…
Reference in New Issue
Block a user