mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-08 04:28:03 +02:00
Restore window properties in the order they were created.
This commit is contained in:
parent
95ad9dc40c
commit
7865c254f3
1 changed files with 19 additions and 8 deletions
|
|
@ -922,17 +922,28 @@ static void dmxBECreateWindowProperties (int idx)
|
|||
WindowPtr pRoot0 = WindowTable[0];
|
||||
WindowPtr pWin;
|
||||
WindowPtr pWin0;
|
||||
PropertyPtr pProp;
|
||||
PropertyPtr pProp, pLast;
|
||||
|
||||
for (pProp = wUserProps (pRoot0); pProp; pProp = pProp->next)
|
||||
dmxBESetWindowProperty (pRoot, pProp);
|
||||
|
||||
pWin = pRoot->lastChild;
|
||||
pWin0 = pRoot0->lastChild;
|
||||
pWin = pRoot;
|
||||
pWin0 = pRoot0;
|
||||
while (pWin)
|
||||
{
|
||||
for (pProp = wUserProps (pWin0); pProp; pProp = pProp->next)
|
||||
dmxBESetWindowProperty (pWin, pProp);
|
||||
pLast = NULL;
|
||||
for (;;)
|
||||
{
|
||||
for (pProp = wUserProps (pWin0); pProp; pProp = pProp->next)
|
||||
{
|
||||
if (pProp == pLast)
|
||||
break;
|
||||
|
||||
pLast = pProp;
|
||||
}
|
||||
|
||||
if (!pLast)
|
||||
break;
|
||||
|
||||
dmxBESetWindowProperty (pWin, pLast);
|
||||
}
|
||||
|
||||
/* Next, create the bottom-most child */
|
||||
if (pWin->lastChild) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue