]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
some changed in tint2conf theme switcher. not yet ready.
[chaz/tint2] / src / tint.c
index 1042ce58e731119f451e4cc5973d4558b7b67edb..235c2e2763ac44ffeaf65fab4b06345d4122b1d6 100644 (file)
@@ -170,7 +170,6 @@ void get_snapshot(const char *path)
                panel->area.width = server.monitor[0].width;
 
        panel->temp_pmap = XCreatePixmap(server.dsp, server.root_win, panel->area.width, panel->area.height, server.depth);
-
        refresh(&panel->area);
 
        Imlib_Image img = NULL;
@@ -180,6 +179,7 @@ void get_snapshot(const char *path)
        imlib_context_set_image(img);
        imlib_save_image(path);
        imlib_free_image();
+       XFreePixmap(server.dsp, panel->temp_pmap);
 }
 
 
This page took 0.019932 seconds and 4 git commands to generate.