From adb54b7767c1f1a211b1a2c62d8bc01dbc44c0d3 Mon Sep 17 00:00:00 2001 From: Karol Szwed Date: Wed, 11 Jun 2003 13:05:44 +0000 Subject: [PATCH] Enable SaveUnder for the geometry tip so that we don't get those nasty unpainted areas when moving/resizing the window in non-opaque modes. For this to work properly have 'Option "backingstore"' set in the Screen section of your XF86Config. (you can also do stuff like startx -- +bs if you are too lazy to hack your X config) I wonder how many distros will have 'Option "backingstore"' included by default... (I'll sync kwin_iii later during the 'big hack' :) svn path=/trunk/kdebase/kwin/; revision=230927 --- geometrytip.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/geometrytip.cpp b/geometrytip.cpp index 2e5d427b3b..5bf111eb41 100644 --- a/geometrytip.cpp +++ b/geometrytip.cpp @@ -5,6 +5,7 @@ */ #include "geometrytip.h" +#include using namespace KWinInternal; @@ -13,6 +14,15 @@ GeometryTip::GeometryTip( const Client* client, const XSizeHints* xSizeHints ): QLabel(NULL, "kwingeometry", WStyle_Customize | WStyle_StaysOnTop | WStyle_NoBorder | WX11BypassWM ) { + // Enable SaveUnder so that we don't get those nasty unpainted + // areas when moving/resizing the window in non-opaque modes. + // For this to work properly have 'Option "backingstore"' set in the Screen + // section of your XF86Config. (some drivers may not support saveunder, + // oh well, we tried.) + XSetWindowAttributes wsa; + wsa.save_under = True; + XChangeWindowAttributes( qt_xdisplay(), winId(), CWSaveUnder, &wsa ); + c = client; setMargin(1); setIndent(0);