X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Ftint.c;h=235c2e2763ac44ffeaf65fab4b06345d4122b1d6;hb=e92c129cb3795408bcb0a305e4d52c03e39af56b;hp=1042ce58e731119f451e4cc5973d4558b7b67edb;hpb=46f53881443c06b9216e78baab429fd45205aa20;p=chaz%2Ftint2 diff --git a/src/tint.c b/src/tint.c index 1042ce5..235c2e2 100644 --- a/src/tint.c +++ b/src/tint.c @@ -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); }