mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
First set of documentation updates.
Include more correct fix for rootless interaction with damage (Bug #1168, Keith Packard).
This commit is contained in:
@@ -78,16 +78,12 @@ 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)
|
||||
if (pScreen->GetWindowPixmap
|
||||
#ifdef ROOTLESS_WORKAROUND
|
||||
&& ((WindowPtr)pDrawable)->viewable
|
||||
#endif
|
||||
)
|
||||
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
||||
|
||||
if (!pPixmap)
|
||||
|
||||
Reference in New Issue
Block a user