Swap Xdbe buffers when resizing window.
authorBrenden Matthews <brenden@rty.ca>
Wed, 5 Aug 2009 21:21:59 +0000 (15:21 -0600)
committerBrenden Matthews <brenden@rty.ca>
Wed, 5 Aug 2009 21:21:59 +0000 (15:21 -0600)
src/conky.c

index 2fb1638..eb9ec9d 100644 (file)
@@ -7439,6 +7439,15 @@ static void main_loop(void)
                                                XResizeWindow(display, window.window, window.width,
                                                                window.height);
                                                set_transparent_background(window.window);
+#ifdef HAVE_XDBE
+                                               if (use_xdbe) {
+                                                       XdbeSwapInfo swap;
+
+                                                       swap.swap_window = window.window;
+                                                       swap.swap_action = XdbeBackground;
+                                                       XdbeSwapBuffers(display, &swap, 1);
+                                               }
+#endif
 
                                                changed++;
 #ifdef HAVE_LUA