window-x11: Fix stage window check when running under non-X11 backends
This code also runs when under the native backend for XWayland, so we can't crash on an invalid cast there.
This commit is contained in:
parent
38253a9f73
commit
b8c13cc426
@ -2803,9 +2803,13 @@ is_our_xwindow (MetaDisplay *display,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
{
|
{
|
||||||
MetaBackendX11 *backend = META_BACKEND_X11 (meta_get_backend ());
|
MetaBackend *backend = meta_get_backend ();
|
||||||
if (xwindow == meta_backend_x11_get_xwindow (backend))
|
|
||||||
return TRUE;
|
if (META_IS_BACKEND_X11 (backend))
|
||||||
|
{
|
||||||
|
if (xwindow == meta_backend_x11_get_xwindow (META_BACKEND_X11 (backend)))
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Any windows created via meta_create_offscreen_window */
|
/* Any windows created via meta_create_offscreen_window */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user