mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
xorg-server:
- add patch from debian to prevent damage issue
This commit is contained in:
parent
7bb0d3271c
commit
b5ef939580
@ -0,0 +1,35 @@
|
||||
Disable damage notifications on move for manually redirected windows.
|
||||
The automatic compositor needs damage notification on move, but a
|
||||
compositing manager doesn't.
|
||||
|
||||
Index: xorg-server/composite/compwindow.c
|
||||
===================================================================
|
||||
--- xorg-server.orig/composite/compwindow.c 2008-06-18 10:28:16.000000000 +0300
|
||||
+++ xorg-server/composite/compwindow.c 2008-06-18 12:06:20.000000000 +0300
|
||||
@@ -580,12 +580,15 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
+ CompWindowPtr cw = GetCompWindow (pWin);
|
||||
+
|
||||
ptOldOrg.x -= dx;
|
||||
ptOldOrg.y -= dy;
|
||||
REGION_TRANSLATE (prgnSrc, prgnSrc,
|
||||
pWin->drawable.x - ptOldOrg.x,
|
||||
pWin->drawable.y - ptOldOrg.y);
|
||||
- DamageRegionAppend(&pWin->drawable, prgnSrc);
|
||||
+ if (pWin->redirectDraw && cw->update == CompositeRedirectAutomatic)
|
||||
+ DamageRegionAppend(&pWin->drawable, prgnSrc);
|
||||
}
|
||||
cs->CopyWindow = pScreen->CopyWindow;
|
||||
pScreen->CopyWindow = compCopyWindow;
|
||||
@@ -664,7 +667,8 @@
|
||||
/*
|
||||
* Report that as damaged so it will be redrawn
|
||||
*/
|
||||
- DamageRegionAppend(&pWin->drawable, &damage);
|
||||
+ if (cw->update == CompositeRedirectAutomatic)
|
||||
+ DamageRegionAppend(&pWin->drawable, &damage);
|
||||
REGION_UNINIT (pScreen, &damage);
|
||||
/*
|
||||
* Save the new border clip region
|
Loading…
x
Reference in New Issue
Block a user