mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-14 11:33:14 +00:00
Fix strange effects on desktop caused by 4a14668772
This commit is contained in:
parent
cfa94a967b
commit
cd92949e67
@ -7478,12 +7478,12 @@ void clean_up(void)
|
|||||||
}
|
}
|
||||||
#ifdef X11
|
#ifdef X11
|
||||||
if (x_initialised == YES) {
|
if (x_initialised == YES) {
|
||||||
|
destroy_window();
|
||||||
free_fonts();
|
free_fonts();
|
||||||
if(x11_stuff.region) {
|
if(x11_stuff.region) {
|
||||||
XDestroyRegion(x11_stuff.region);
|
XDestroyRegion(x11_stuff.region);
|
||||||
x11_stuff.region = NULL;
|
x11_stuff.region = NULL;
|
||||||
}
|
}
|
||||||
destroy_window();
|
|
||||||
XClearWindow(display, RootWindow(display, screen));
|
XClearWindow(display, RootWindow(display, screen));
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
if(info.x11.desktop.all_names) {
|
if(info.x11.desktop.all_names) {
|
||||||
|
@ -194,7 +194,6 @@ void set_transparent_background(Window win)
|
|||||||
|
|
||||||
void destroy_window(void)
|
void destroy_window(void)
|
||||||
{
|
{
|
||||||
XDestroyWindow(display, window.window);
|
|
||||||
XFreeGC(display, window.gc);
|
XFreeGC(display, window.gc);
|
||||||
memset(&window, 0, sizeof(struct conky_window));
|
memset(&window, 0, sizeof(struct conky_window));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user