[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: QRect(-100,-100,1,1) damage events?
From:       Thomas =?UTF-8?B?TMO8Ymtpbmc=?= <thomas.luebking () gmail ! com>
Date:       2011-11-08 19:51:00
Message-ID: 20111108205100.3c3d11fc () gmail ! com
[Download RAW message or body]

Yeah, sure - "the attached patch" .....
I want a working kmail back! :-(

Cheers,
Thomas
[Attachment #3 (text/x-patch)]

diff --git a/kwin/composite.cpp b/kwin/composite.cpp
index 51d845c..d459e5d 100644
--- a/kwin/composite.cpp
+++ b/kwin/composite.cpp
@@ -564,6 +564,7 @@ Pixmap Toplevel::createWindowPixmap()
     assert(compositing());
     if (unredirected())
         return None;
+    damageRatio = 0.0;
     grabXServer();
     KXErrorHandler err;
     Pixmap pix = XCompositeNameWindowPixmap(display(), frameId());
@@ -673,6 +674,8 @@ void Toplevel::addDamage(int x, int y, int w, int h)
     // resizing the decoration may lag behind a bit and when shrinking there
     // may be a damage event coming with size larger than the current window size
     r &= rect();
+    if (r.isEmpty())
+        return;
     damage_region += r;
     int damageArea = 0;
     foreach (const QRect &r2, damage_region.rects())


_______________________________________________
kwin mailing list
kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic