add some damageRatio = 0.0 resets, required for esp. GTK+ popups
This commit is contained in:
parent
b40119aab2
commit
2843436393
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue