]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Very minor refactoring
authorMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 17:24:23 +0000 (19:24 +0200)
committerMikko Rasa <tdb@tdb.fi>
Fri, 11 Dec 2015 17:24:23 +0000 (19:24 +0200)
source/main.c

index c37ecc8d86f6f552a9cbe2ac481ad87a30065640..2da64e601b6472a42fba0dab7f4781fa1ead4d79 100644 (file)
@@ -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)