x11: Add window test before accessing reparents_pending field
https://gitlab.gnome.org/GNOME/mutter/merge_requests/768
This commit is contained in:
parent
8f242f8bf0
commit
fdda8adfcf
@ -1437,7 +1437,7 @@ handle_other_xevent (MetaX11Display *x11_display,
|
||||
break;
|
||||
case ReparentNotify:
|
||||
{
|
||||
if (window->reparents_pending > 0)
|
||||
if (window && window->reparents_pending > 0)
|
||||
window->reparents_pending -= 1;
|
||||
if (event->xreparent.event == x11_display->xroot)
|
||||
meta_stack_tracker_reparent_event (display->stack_tracker,
|
||||
|
Loading…
Reference in New Issue
Block a user