/*
* Motif Release 1.2.3
*/
-#ifdef REV_INFO
-#ifndef lint
-static char rcsid[] = "$TOG: WmWinList.c /main/8 1997/06/10 15:50:50 samborn $"
-#endif
-#endif
/*
* (c) Copyright 1987, 1988, 1989, 1990, 1993, 1994 Hewlett-Packard Company
* (c) Copyright 1993, 1994 International Business Machines Corp.
#include "WmMenu.h"
#include "WmResource.h"
#include "WmWinInfo.h"
-#ifdef WSM
#include "WmWrkspace.h"
-#endif /* WSM */
Boolean belowSystemModal = False;
XWindowChanges windowChanges;
WmScreenData *pSD = pWS->pSD;
-#ifdef WSM
WsClientData *pWsc = GetWsClientData (pWS, pCD);
-#endif /* WSM */
if (pCD->inputMode == MWM_INPUT_SYSTEM_MODAL)
}
-#ifdef WSM
if (!pWsc->pIconBox && pWsc->iconFrameWin)
-#else /* WSM */
- if (!pCD->pIconBox && pCD->iconFrameWin)
-#endif /* WSM */
{
/*
* Put the icon on the bottom of the stack.
if (pSD->lastClient->type == MINIMIZED_STATE)
{
-#ifdef WSM
WsClientData *pWsib;
pWsib = &pSD->lastClient->pCD->pWsList[0];
windowChanges.sibling = pWsib->iconFrameWin;
-#else /* WSM */
- windowChanges.sibling = pSD->lastClient->pCD->iconFrameWin;
-#endif /* WSM */
}
else
{
windowChanges.sibling = pSD->lastClient->pCD->clientFrameWin;
}
windowChanges.stack_mode = Below;
-#ifdef WSM
XConfigureWindow (DISPLAY, pWsc->iconFrameWin,
CWSibling | CWStackMode, &windowChanges);
-#else /* WSM */
- XConfigureWindow (DISPLAY, pCD->iconFrameWin,
- CWSibling | CWStackMode, &windowChanges);
-#endif /* WSM */
pCD->iconEntry.type = MINIMIZED_STATE;
pCD->iconEntry.pCD = pCD;
void DeleteClientFromList (WmWorkspaceData *pWS, ClientData *pCD)
{
-#ifdef WSM
WsClientData *pWsc = GetWsClientData (pWS, pCD);
-#endif /* WSM */
WmScreenData *pSD = pWS->pSD;
if (pCD->transientLeader)
* Remove the client and icon entries from the window list.
*/
-#ifdef WSM
if (!pWsc->pIconBox && pWsc->iconFrameWin)
-#else /* WSM */
- if (!pCD->pIconBox && pCD->iconFrameWin)
-#endif /* WSM */
{
if (pCD->iconEntry.prevSibling)
{
{
restack = True;
}
-#ifdef WSM
if (BumpPrimaryToBottom (pcdLeader))
{
restack = True;
}
-#endif /* WSM */
}
return (restack);
int count;
static int size = 0;
static Window *windows = NULL;
-#ifndef WSM
- Window *nextWindow;
-#endif /* WSM */
XWindowChanges windowChanges;
int i;
int leaderIndex;
size = count + 5;
}
-#ifdef WSM
MakeTransientFamilyStackingList (windows, pcdLeader);
-#else /* WSM */
- nextWindow = MakeTransientWindowList (windows, pcdLeader);
- *nextWindow = pcdLeader->clientFrameWin;
-#endif /* WSM */
/*
* Changes for CDExc19397.
*/
pcd = FindTransientTreeLeader (pcd);
-#ifdef WSM
if (!(pcd->secondariesOnTop) &&
(LeaderOnTop (pcd)))
{
return (pcdSub);
}
}
-#endif /* WSM */
/*
}
else
{
-#ifdef WSM
/*
* Adjust stack entry window if we're stacking below a
* transient tree.
stackWindow = LowestWindowInTransientFamily (pStackEntry->pCD);
}
-#endif /* WSM */
if (stackWindow == 0)
{
if (pSD->lastClient->type == MINIMIZED_STATE)
}
else
{
-#ifdef WSM
if (pSD->lastClient->pCD->transientChildren)
{
stackWindow =
LowestWindowInTransientFamily (pSD->lastClient->pCD);
}
else
-#endif /* WSM */
stackWindow = pSD->lastClient->pCD->clientFrameWin;
}
}
int bY1;
int bY2;
-#ifdef WSM
/*
* For workspace stuff: if either is unseen, then neither
* is obscured.
{
return (False);
}
-#endif /* WSM */
if (pcdA->clientState == NORMAL_STATE)
{
return (pEntry);
} /* END OF FUNCTION FindClientNameMatch */
-#ifdef WSM
-\f
+
/*************************************<->*************************************
*
* BumpPrimaryToTop (pcdLeader)
ClientData *pcdSub;
Window *nextWindow, wSave, wTemp, wTop;
int count = CountTransientChildren (pcdLeader);
- register int i, j;
+ int i, j;
/*
* Construct the transient stacking list according to
return (bOnTop);
}
-#endif /* WSM */