X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fconky.c;h=7f5ec0055ead4b037ccbd90b16b588be3cc98cf1;hb=72c9a740c77f3e73e2d104add63890ee7df13b43;hp=f55ca4e65d84632e1f26ee7f33e1d10463653767;hpb=fc1bd4cf0a46eb594789d5a5f72a7f9427e89431;p=monky diff --git a/src/conky.c b/src/conky.c index f55ca4e..7f5ec00 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3494,8 +3494,20 @@ static void clear_text(int exposures) { #ifdef HAVE_XDBE if (use_xdbe) { - /* The swap action is XdbeBackground, which clears */ +/* + The swap action is XdbeBackground, which clears return; +*/ + if (display && window.back_buffer) { // make sure these are !null + /* there is some extra space for borders and outlines */ + XFillRectangle(display, window.back_buffer, window.gc_back, + 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); + } + + } else #endif if (display && window.window) { // make sure these are !null