add some damageRatio = 0.0 resets, required for esp. GTK+ popups

This commit is contained in:
Thomas Lübking 2011-08-13 10:36:35 +02:00
parent b40119aab2
commit 2843436393

View file

@ -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;