mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-25 23:30:05 +01:00
Workaround for servers using rootless layer with damage (Bug #1168, Torrey
T. Lyons).
This commit is contained in:
parent
0e56515aa3
commit
d7fef52254
1 changed files with 8 additions and 0 deletions
|
|
@ -78,6 +78,14 @@ getDrawableDamageRef (DrawablePtr pDrawable)
|
|||
{
|
||||
ScreenPtr pScreen = pDrawable->pScreen;
|
||||
|
||||
#ifdef ROOTLESS_WORKAROUND
|
||||
if (!((WindowPtr)pDrawable)->viewable)
|
||||
{
|
||||
static DamagePtr nullDamage = 0;
|
||||
return &nullDamage;
|
||||
}
|
||||
#endif
|
||||
|
||||
pPixmap = 0;
|
||||
if (pScreen->GetWindowPixmap)
|
||||
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue