From fdda8adfcf4fddd22051a1070ff037532cfbcf94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bernon?= Date: Mon, 2 Sep 2019 18:22:40 +0200 Subject: [PATCH] x11: Add window test before accessing reparents_pending field https://gitlab.gnome.org/GNOME/mutter/merge_requests/768 --- src/x11/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/events.c b/src/x11/events.c index e6f8ac884..88b8fb639 100644 --- a/src/x11/events.c +++ b/src/x11/events.c @@ -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,