Remove all optional compile flags from dtwm that are not referenced anywhere, and are unlikely to ever be used
This commit is contained in:
@@ -144,8 +144,6 @@ void InitColormapFocus (WmScreenData *pSD)
|
||||
} /* END OF FUNCTION InitColormapFocus */
|
||||
|
||||
|
||||
|
||||
#ifndef OLD_COLORMAP
|
||||
/*************************************<->*************************************
|
||||
*
|
||||
* ForceColormapFocus (pSD, pCD)
|
||||
@@ -181,11 +179,7 @@ void ForceColormapFocus (WmScreenData *pSD, ClientData *pCD)
|
||||
(pCD->clientState == MAXIMIZED_STATE)))
|
||||
{
|
||||
pSD->colormapFocus = pCD;
|
||||
#ifndef OLD_COLORMAP /* colormaps */
|
||||
ProcessColormapList (pSD, pCD);
|
||||
#else /* OSF original */
|
||||
WmInstallColormap (pSD, pCD->clientColormap);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -201,10 +195,8 @@ void ForceColormapFocus (WmScreenData *pSD, ClientData *pCD)
|
||||
}
|
||||
|
||||
} /* END OF FUNCTION ForceColormapFocus */
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/*************************************<->*************************************
|
||||
*
|
||||
* SetColormapFocus (pSD, pCD)
|
||||
@@ -233,38 +225,10 @@ void SetColormapFocus (WmScreenData *pSD, ClientData *pCD)
|
||||
|
||||
return;
|
||||
}
|
||||
#ifndef OLD_COLORMAP
|
||||
ForceColormapFocus (pSD, pCD);
|
||||
#else /* OSF original */
|
||||
|
||||
if (pCD && ((pCD->clientState == NORMAL_STATE) ||
|
||||
(pCD->clientState == MAXIMIZED_STATE)))
|
||||
{
|
||||
pSD->colormapFocus = pCD;
|
||||
#ifndef OLD_COLORMAP /* colormaps */
|
||||
ProcessColormapList (pSD, pCD);
|
||||
#else /* OSF original */
|
||||
WmInstallColormap (pSD, pCD->clientColormap);
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
/*
|
||||
* The default colormap is installed for minimized windows that have
|
||||
* the colormap focus.
|
||||
* !!! should colormaps be installed for icons with client !!!
|
||||
* !!! icon windows? should the client colormap be installed ? !!!
|
||||
*/
|
||||
|
||||
pSD->colormapFocus = NULL;
|
||||
WmInstallColormap (pSD, pSD->workspaceColormap);
|
||||
}
|
||||
#endif
|
||||
|
||||
} /* END OF FUNCTION SetColormapFocus */
|
||||
|
||||
|
||||
|
||||
/*************************************<->*************************************
|
||||
*
|
||||
* WmInstallColormap (pSD, colormap)
|
||||
@@ -366,11 +330,9 @@ void ResetColormapData (ClientData *pCD, Window *pWindows, int count)
|
||||
XtFree ((char *)(pCD->cmapWindows));
|
||||
XtFree ((char *)(pCD->clientCmapList));
|
||||
pCD->clientCmapCount = 0;
|
||||
#ifndef OLD_COLORMAP /* colormap */
|
||||
XtFree ((char *)(pCD->clientCmapFlags));
|
||||
pCD->clientCmapFlags = 0; /* DEBUG: */
|
||||
pCD->clientCmapFlagsInitialized = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (count)
|
||||
|
||||
Reference in New Issue
Block a user