From: Mikko Rasa Date: Fri, 18 Dec 2015 09:24:27 +0000 (+0200) Subject: Don't try to create a mask out of null rects X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e971e3d263563d25fec184168b7a200160c632ff;p=geometrycompositor.git Don't try to create a mask out of null rects This may happen if the window is destroyed at just the right moment. --- 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;