mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 04:38:08 +02:00
Fix reverse walking of window properties and make sure
dmxBECreateWindowProperties works when panoramix is disabled.
This commit is contained in:
parent
9b684f84fb
commit
796f7c999a
1 changed files with 11 additions and 12 deletions
|
|
@ -919,31 +919,30 @@ static void dmxBEMapRootWindow(int idx)
|
|||
static void dmxBECreateWindowProperties (int idx)
|
||||
{
|
||||
WindowPtr pRoot = WindowTable[idx];
|
||||
WindowPtr pRoot0 = WindowTable[0];
|
||||
WindowPtr pRoot0 = pRoot;
|
||||
WindowPtr pWin;
|
||||
WindowPtr pWin0;
|
||||
PropertyPtr pProp, pLast;
|
||||
|
||||
#ifdef PANORAMIX
|
||||
if (!noPanoramiXExtension)
|
||||
pRoot0 = WindowTable[0];
|
||||
#endif
|
||||
|
||||
pWin = pRoot;
|
||||
pWin0 = pRoot0;
|
||||
while (pWin)
|
||||
{
|
||||
pLast = NULL;
|
||||
for (;;)
|
||||
do
|
||||
{
|
||||
for (pProp = wUserProps (pWin0); pProp; pProp = pProp->next)
|
||||
{
|
||||
if (pProp == pLast)
|
||||
if (pProp->next == pLast)
|
||||
break;
|
||||
|
||||
pLast = pProp;
|
||||
}
|
||||
|
||||
if (!pLast)
|
||||
break;
|
||||
|
||||
dmxBESetWindowProperty (pWin, pLast);
|
||||
}
|
||||
if (pProp)
|
||||
dmxBESetWindowProperty (pWin, (pLast = pProp));
|
||||
} while (pLast != wUserProps (pWin0));
|
||||
|
||||
/* Next, create the bottom-most child */
|
||||
if (pWin->lastChild) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue