]> git.tdb.fi Git - geometrycompositor.git/commitdiff
Initialize some variables
authorMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 00:55:58 +0000 (02:55 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 14 Dec 2015 00:55:58 +0000 (02:55 +0200)
source/main.c

index 2d5dd9186e8f890175b5acae7006390bd3e71dfd..36e8d28a63f11b5f14ce7da8578c7cb78247a521 100644 (file)
@@ -506,6 +506,7 @@ CompositedWindow *add_window(Compositor *compositor, CompositedScreen *screen, W
 
        window->texture = create_2d_texture();
        window->mask_texture = create_2d_texture();
+       window->use_mask = 0;
        window->recreate_mask = (window->map_state==IsViewable);
 
        XShapeSelectInput(compositor->display, window->window, ShapeNotifyMask);
@@ -879,6 +880,9 @@ int initialize_screen(Compositor *compositor, unsigned number)
                        return 0;
        XRRFreeScreenResources(xrr_res);
 
+       screen->root_pixmap = 0;
+       screen->root_glx_pixmap = 0;
+
        update_geometry_correction(compositor, screen);
        update_root_pixmap(compositor, screen);