mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 20:31:17 +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
|
#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) {
|
||||||
|
10
src/x11.c
10
src/x11.c
@ -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 |
|
||||||
|
Loading…
Reference in New Issue
Block a user