From 28434363934d89aac772ca7c860a9045ad311415 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Sat, 13 Aug 2011 10:36:35 +0200 Subject: [PATCH] add some damageRatio = 0.0 resets, required for esp. GTK+ popups --- composite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composite.cpp b/composite.cpp index d2c31c0219..edffac1be3 100644 --- a/composite.cpp +++ b/composite.cpp @@ -535,6 +535,7 @@ void Toplevel::setupCompositing() #ifdef KWIN_HAVE_COMPOSITING if (!compositing()) return; + damageRatio = 0.0; if (damage_handle != None) return; damage_handle = XDamageCreate(display(), frameId(), XDamageReportRawRectangles); @@ -550,6 +551,7 @@ void Toplevel::setupCompositing() void Toplevel::finishCompositing() { #ifdef KWIN_HAVE_COMPOSITING + damageRatio = 0.0; if (damage_handle == None) return; workspace()->checkUnredirect(true); @@ -567,6 +569,7 @@ void Toplevel::finishCompositing() void Toplevel::discardWindowPixmap() { + damageRatio = 0.0; addDamageFull(); if (window_pix == None) return;