From: Mikko Rasa Date: Mon, 14 Dec 2015 00:55:58 +0000 (+0200) Subject: Initialize some variables X-Git-Url: http://git.tdb.fi/?p=geometrycompositor.git;a=commitdiff_plain;h=e2b40ef8ad9a553ef7ca3e17684d23b20a884a36 Initialize some variables --- diff --git a/source/main.c b/source/main.c index 2d5dd91..36e8d28 100644 --- a/source/main.c +++ b/source/main.c @@ -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);