free old statusbar drawable
This commit is contained in:
parent
6e3b3da6c0
commit
a051c2db09
|
@ -45,6 +45,8 @@ statusbar_draw(int screen)
|
||||||
if(vscreen.statusbar->position == BarOff)
|
if(vscreen.statusbar->position == BarOff)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
XFreePixmap(globalconf.display, vscreen.statusbar->drawable);
|
||||||
|
|
||||||
DrawCtx *ctx = draw_get_context(phys_screen,
|
DrawCtx *ctx = draw_get_context(phys_screen,
|
||||||
vscreen.statusbar->width,
|
vscreen.statusbar->width,
|
||||||
vscreen.statusbar->height);
|
vscreen.statusbar->height);
|
||||||
|
@ -99,7 +101,6 @@ statusbar_draw(int screen)
|
||||||
p_delete(&ctx);
|
p_delete(&ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
statusbar_display(screen);
|
statusbar_display(screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue