dtwm: Remove WSM define, that is always on for CDE

This commit is contained in:
Peter Howkins
2018-06-20 00:46:58 +01:00
parent 5dc05eaeb4
commit 9a551dd8a6
57 changed files with 237 additions and 2797 deletions
+1 -44
View File
@@ -55,9 +55,7 @@
#include "WmMenu.h"
#include "WmResource.h"
#include "WmWinInfo.h"
#ifdef WSM
#include "WmWrkspace.h"
#endif /* WSM */
@@ -104,9 +102,7 @@ void AddClientToList (WmWorkspaceData *pWS, ClientData *pCD, Boolean onTop)
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)
@@ -170,11 +166,7 @@ void AddClientToList (WmWorkspaceData *pWS, ClientData *pCD, Boolean onTop)
}
#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.
@@ -182,27 +174,18 @@ void AddClientToList (WmWorkspaceData *pWS, ClientData *pCD, Boolean onTop)
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;
@@ -444,9 +427,7 @@ void DeleteEntryFromList (WmWorkspaceData *pWS, ClientListEntry *pListEntry)
void DeleteClientFromList (WmWorkspaceData *pWS, ClientData *pCD)
{
#ifdef WSM
WsClientData *pWsc = GetWsClientData (pWS, pCD);
#endif /* WSM */
WmScreenData *pSD = pWS->pSD;
if (pCD->transientLeader)
@@ -469,11 +450,7 @@ void DeleteClientFromList (WmWorkspaceData *pWS, ClientData *pCD)
* 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)
{
@@ -1012,12 +989,10 @@ Boolean PutTransientOnTop (ClientData *pcd)
{
restack = True;
}
#ifdef WSM
if (BumpPrimaryToBottom (pcdLeader))
{
restack = True;
}
#endif /* WSM */
}
return (restack);
@@ -1116,9 +1091,6 @@ void RestackTransients (ClientData *pcd)
int count;
static int size = 0;
static Window *windows = NULL;
#ifndef WSM
Window *nextWindow;
#endif /* WSM */
XWindowChanges windowChanges;
int i;
int leaderIndex;
@@ -1150,12 +1122,7 @@ void RestackTransients (ClientData *pcd)
size = count + 5;
}
#ifdef WSM
MakeTransientFamilyStackingList (windows, pcdLeader);
#else /* WSM */
nextWindow = MakeTransientWindowList (windows, pcdLeader);
*nextWindow = pcdLeader->clientFrameWin;
#endif /* WSM */
/*
* Changes for CDExc19397.
@@ -1471,7 +1438,6 @@ ClientData * FindTransientOnTop (ClientData *pcd)
*/
pcd = FindTransientTreeLeader (pcd);
#ifdef WSM
if (!(pcd->secondariesOnTop) &&
(LeaderOnTop (pcd)))
{
@@ -1489,7 +1455,6 @@ ClientData * FindTransientOnTop (ClientData *pcd)
return (pcdSub);
}
}
#endif /* WSM */
/*
@@ -1655,7 +1620,6 @@ void StackWindow (WmWorkspaceData *pWS, ClientListEntry *pEntry, Boolean onTop,
}
else
{
#ifdef WSM
/*
* Adjust stack entry window if we're stacking below a
* transient tree.
@@ -1665,7 +1629,6 @@ void StackWindow (WmWorkspaceData *pWS, ClientListEntry *pEntry, Boolean onTop,
stackWindow = LowestWindowInTransientFamily (pStackEntry->pCD);
}
#endif /* WSM */
if (stackWindow == 0)
{
if (pSD->lastClient->type == MINIMIZED_STATE)
@@ -1674,14 +1637,12 @@ void StackWindow (WmWorkspaceData *pWS, ClientListEntry *pEntry, Boolean onTop,
}
else
{
#ifdef WSM
if (pSD->lastClient->pCD->transientChildren)
{
stackWindow =
LowestWindowInTransientFamily (pSD->lastClient->pCD);
}
else
#endif /* WSM */
stackWindow = pSD->lastClient->pCD->clientFrameWin;
}
}
@@ -1882,7 +1843,6 @@ Boolean CheckIfObscuring (ClientData *pcdA, ClientData *pcdB)
int bY1;
int bY2;
#ifdef WSM
/*
* For workspace stuff: if either is unseen, then neither
* is obscured.
@@ -1892,7 +1852,6 @@ Boolean CheckIfObscuring (ClientData *pcdA, ClientData *pcdB)
{
return (False);
}
#endif /* WSM */
if (pcdA->clientState == NORMAL_STATE)
{
@@ -2423,8 +2382,7 @@ ClientListEntry * FindClientNameMatch (ClientListEntry *pEntry,
return (pEntry);
} /* END OF FUNCTION FindClientNameMatch */
#ifdef WSM
/*************************************<->*************************************
*
* BumpPrimaryToTop (pcdLeader)
@@ -2821,4 +2779,3 @@ LeaderOnTop (
return (bOnTop);
}
#endif /* WSM */