mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 04:17:33 +00:00
Don't clear entire X window, just drawing area.
This commit is contained in:
parent
7b93ad8071
commit
2904720a58
@ -7845,13 +7845,16 @@ void clean_up(void *memtofree1, void* memtofree2)
|
||||
}
|
||||
#ifdef X11
|
||||
if (x_initialised == YES) {
|
||||
XClearArea(display, window.window, text_start_x - window.border_inner_margin - window.border_outer_margin - window.border_width,
|
||||
text_start_y - window.border_inner_margin - window.border_outer_margin - window.border_width,
|
||||
text_width + window.border_inner_margin * 2 + window.border_outer_margin * 2 + window.border_width * 2,
|
||||
text_height + window.border_inner_margin * 2 + window.border_outer_margin * 2 + window.border_width * 2, 0);
|
||||
destroy_window();
|
||||
free_fonts();
|
||||
if(x11_stuff.region) {
|
||||
XDestroyRegion(x11_stuff.region);
|
||||
x11_stuff.region = NULL;
|
||||
}
|
||||
XClearWindow(display, RootWindow(display, screen));
|
||||
XCloseDisplay(display);
|
||||
display = NULL;
|
||||
if(info.x11.desktop.all_names) {
|
||||
|
10
src/x11.c
10
src/x11.c
@ -193,7 +193,6 @@ void set_transparent_background(Window win)
|
||||
XSetWindowBackground(display, win, background_colour);
|
||||
colour_set = background_colour;
|
||||
}
|
||||
// XClearWindow(display, win); not sure why this was here
|
||||
}
|
||||
|
||||
void destroy_window(void)
|
||||
@ -478,15 +477,6 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
|
||||
#endif /* IMLIB2 */
|
||||
XFlush(display);
|
||||
|
||||
/* set_transparent_background(window.window);
|
||||
* must be done after double buffer stuff? */
|
||||
#ifdef OWN_WINDOW
|
||||
/* if (own_window) {
|
||||
set_transparent_background(window.window);
|
||||
XClearWindow(display, window.window);
|
||||
} */
|
||||
#endif
|
||||
|
||||
XSelectInput(display, window.window, ExposureMask | PropertyChangeMask
|
||||
#ifdef OWN_WINDOW
|
||||
| (own_window ? (StructureNotifyMask |
|
||||
|
Loading…
Reference in New Issue
Block a user