From e971e3d263563d25fec184168b7a200160c632ff Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 18 Dec 2015 11:24:27 +0200 Subject: [PATCH] Don't try to create a mask out of null rects This may happen if the window is destroyed at just the right moment. --- source/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/main.c b/source/main.c index f7688b9..cd2f1ac 100644 --- a/source/main.c +++ b/source/main.c @@ -422,6 +422,8 @@ void update_window_mask(Compositor *compositor, CompositedWindow *window) return; rects = XShapeGetRectangles(compositor->display, window->window, ShapeBounding, &rect_count, &rect_order); + if(!rects) + return; width = window->width+2*window->border; height = window->height+2*window->border; -- 2.43.0