From: Mikko Rasa Date: Fri, 11 Dec 2015 17:24:23 +0000 (+0200) Subject: Very minor refactoring X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0f620e224622a48411afc1f47d900b96e09ea82a;p=geometrycompositor.git Very minor refactoring --- diff --git a/source/main.c b/source/main.c index c37ecc8..2da64e6 100644 --- a/source/main.c +++ b/source/main.c @@ -528,11 +528,11 @@ void process_map_event(Compositor *compositor, XMapEvent *event) return; CompositedWindow *window = find_window(screen, event->window); - if(window) - { - window->map_state = IsViewable; - create_window_pixmap(compositor, screen, window); - } + if(!window) + return; + + window->map_state = IsViewable; + create_window_pixmap(compositor, screen, window); } void process_unmap_event(Compositor *compositor, XUnmapEvent *event)