1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Don't clear entire X window, just drawing area.

This commit is contained in:
Brenden Matthews 2009-08-05 14:40:53 -06:00
parent 7b93ad8071
commit 2904720a58
2 changed files with 4 additions and 11 deletions

View File

@ -7845,13 +7845,16 @@ void clean_up(void *memtofree1, void* memtofree2)
} }
#ifdef X11 #ifdef X11
if (x_initialised == YES) { 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(); 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;
} }
XClearWindow(display, RootWindow(display, screen));
XCloseDisplay(display); XCloseDisplay(display);
display = NULL; display = NULL;
if(info.x11.desktop.all_names) { if(info.x11.desktop.all_names) {

View File

@ -193,7 +193,6 @@ void set_transparent_background(Window win)
XSetWindowBackground(display, win, background_colour); XSetWindowBackground(display, win, background_colour);
colour_set = background_colour; colour_set = background_colour;
} }
// XClearWindow(display, win); not sure why this was here
} }
void destroy_window(void) 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 */ #endif /* IMLIB2 */
XFlush(display); 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 XSelectInput(display, window.window, ExposureMask | PropertyChangeMask
#ifdef OWN_WINDOW #ifdef OWN_WINDOW
| (own_window ? (StructureNotifyMask | | (own_window ? (StructureNotifyMask |