1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Fix strange effects on desktop caused by 4a14668772

This commit is contained in:
Nikolas Garofil 2009-07-14 18:10:43 +02:00
parent cfa94a967b
commit cd92949e67
2 changed files with 1 additions and 2 deletions

View File

@ -7478,12 +7478,12 @@ void clean_up(void)
}
#ifdef X11
if (x_initialised == YES) {
destroy_window();
free_fonts();
if(x11_stuff.region) {
XDestroyRegion(x11_stuff.region);
x11_stuff.region = NULL;
}
destroy_window();
XClearWindow(display, RootWindow(display, screen));
XCloseDisplay(display);
if(info.x11.desktop.all_names) {

View File

@ -194,7 +194,6 @@ void set_transparent_background(Window win)
void destroy_window(void)
{
XDestroyWindow(display, window.window);
XFreeGC(display, window.gc);
memset(&window, 0, sizeof(struct conky_window));
}