Remove all optional compile flags from dtwm that are not referenced anywhere, and...
authorwmoxam <wes@wmoxam.com>
Mon, 14 Oct 2019 04:31:57 +0000 (00:31 -0400)
committerJon Trulson <jon@radscan.com>
Fri, 18 Oct 2019 02:34:14 +0000 (20:34 -0600)
23 files changed:
cde/config/cf/Motif.tmpl
cde/programs/dtwm/README
cde/programs/dtwm/WmCDecor.c
cde/programs/dtwm/WmCEvent.c
cde/programs/dtwm/WmCEvent.h
cde/programs/dtwm/WmColormap.c
cde/programs/dtwm/WmColormap.h
cde/programs/dtwm/WmEvent.c
cde/programs/dtwm/WmFeedback.c
cde/programs/dtwm/WmFunction.c
cde/programs/dtwm/WmGlobal.h
cde/programs/dtwm/WmHelp.c
cde/programs/dtwm/WmImage.c
cde/programs/dtwm/WmInitWs.c
cde/programs/dtwm/WmManage.c
cde/programs/dtwm/WmMenu.c
cde/programs/dtwm/WmOL.c
cde/programs/dtwm/WmOL.h
cde/programs/dtwm/WmProperty.c
cde/programs/dtwm/WmProtocol.c
cde/programs/dtwm/WmResource.c
cde/programs/dtwm/WmWinConf.c
cde/programs/dtwm/WmWinInfo.c

index f3d612652aee87bc452cadccf03d384f877c21f1..4ec413878062b31f7bf2107f70c0c8c32069e765 100644 (file)
@@ -95,7 +95,6 @@ XCOMM $TOG: Motif.tmpl /main/6 1999/05/19 17:00:05 mgreess $
 # define XmDefines  /**/
 #endif
 
-/* To compile without SHAPE extension, set this to -DNO_SHAPE */
 #ifndef MwmDefines
 # define MwmDefines /**/
 #endif
index c32f1513ec40a48f17124095fd3fc68afddefb5d..8c0b66db94bff393e021defa39c68f9f120e17ce 100644 (file)
@@ -5,26 +5,6 @@ The following is a listing of the conditional compilation switches that
 are "not obvious." Excluded are hardware or OS identifiers (e.g. __ultrix),
 header file include flags, and macros (e.g. ABS).
 
-    ALTERNATE_POSTMENU
-       This turns on menu posting by a simple call to XtManageChild.
-       Normally, some underbar routines are called.
-
-    DT_LEFT_JUSTIFY_TITLE
-       This causes the text in the window titles to be left justified 
-       instead of centered. NOTE that WSM must also be turned on for
-       this to take effect.
-
-    CONCAT_TEXTLIST
-       If turned on, then all members of compound text window 
-       properties (WM_NAME, WM_ICON_NAME) are converted to XmStrings
-       and concatenated together. Normally, only the first member
-       is taken.
-
-    CONFIG_RELATIVE_TO_CLIENT
-       If defined, then programmatic window configurations are
-       absolute. Normally, the window frame offset is taken into
-       account if it would have been during a user-driven config.
-
     DEBUG
        Turns on code that prints out error messages (specifically
        protocol errors).
@@ -44,19 +24,6 @@ header file include flags, and macros (e.g. ABS).
        If defined, the session hints property is left on the root
        window after being read. Normally, it is deleted.
 
-    DISALLOW_DEEP_ICONS
-       Turns off code that allows icon pixmaps of depth greater than
-       one.
-
-    DONT_FILTER_ICON_WINDOWS
-       This disables code that tries to prevent an icon window from being
-       managed as a normal toplevel window.
-
-    FUTURE
-       This appears to enable code that will allow item help to work
-       over window icons. I suspect that this is not completely
-       implemented.
-
     ICCC_COMPLIANT
         This enables stricter ICCCM compliance. Specifically, some
        clients didn't get WM_PROTOCOLS quite right.
@@ -68,89 +35,22 @@ header file include flags, and macros (e.g. ABS).
     LARGECURSORS
        Allows cursors larger than 16x16.
 
-    MCCABE
-       Conditional compile for McCabe complexity metrics.
-
     MESSAGE_CAT
        Enables message catalog code for local language support.
 
     MOTIF_DEFAULT_ICON
        Enables the default window icon with four buttons.
 
-    NO
-       Vestigal/experimental code for position help dialog (WmHelp.c).
-
-    NO_OL_COMPAT
-       If defined, then code to read and interpret Open Look window
-       manager hints is removed.
-
-    NO_SETPGRP
-        If defined, then child processes started by f.exec are not
-       put into their own process group.
-
-    NO_SHAPE
-       If defined, then the shape extension is not supported.
-
-    NO_WMQUERY
-       If defined, the code to provide the WM_QUERY functionality is
-       removed.
-
-    NO_DT
-       If defined, then code that references the Dt library is removed.
-
-    OLD
-       Vestigal code in WmHelp.c
-
     OLD_CODE
        Vestigal code.
 
-    OLD_COLORMAP
-       Vestigal code.
-
-    OLD_TAKE_FOCUS
-       Vestigal code.
-
-    PANACOMM
-       HP Panacom division modification to support clients running
-       in their X terminals.
-
-    PARANOID
-       If enabled, the a server grab is done around a property read. 
-       (This is probably not necessary.)
-
     PORT_NOVFORK
        Enable for systems that don't have the vfork() call.
 
-    PORT_OLDXLIB
-       Enables code that works around an old bug in XGetClassHint().
-
     R2_COMPAT
        Enables support for old clients that still pass window geometry
        hint information in WM_NORMAL_HINTS.
 
-    ROOT_ICON_MENU
-       Experimental code to provide MS Windows-like traversal of focus
-       between root icons with menus posted.
-
-    SGI_FOCUS_PATCH
-       Fixes a specific window focus problem.
-
     UNMAP_ON_RESTART
        All windows are unmapped on restart.
 
-    _BMS
-       Formerly used to denote code that interfaced to the HP Broadcast
-       message server. This code has been switched over to ICCC
-       messaging. The ifdef's should be removed, the code should stay.
-
-    _CMDINV
-       The #ifdef is somewhat vestigal--it's not even put in
-       correctly. This brackets code that is partly used to send the
-       ready message. It should be removed, the code should stay. 
-
-    _NO_PROTO
-       If turned on, then pre-ANSI function prototypes are used.
-
-    _NO_WM
-       Enables testing code in WmPanel.c that allows it to be compiled
-       with a test program outside of the window manager.
index cf49770f0c483cfeb13450e060086e11854869a6..aa296c7756e9fbaf03e3b9cc4f70274e9f0c1e3e 100644 (file)
@@ -155,13 +155,11 @@ Boolean FrameWindow (ClientData *pcd)
 
     AdoptClient(pcd);                  /* reparent the window */
 
-#ifndef NO_SHAPE
     /* shape the frame */
     if (wmGD.hasShape && pcd->wShaped)
     {
         SetFrameShape (pcd);
     }
-#endif /* NO_SHAPE */
 
     return(TRUE);
 
@@ -1038,7 +1036,6 @@ void AdoptClient (ClientData *pcd)
 
     XConfigureWindow (DISPLAY, pcd->client, mask, &windowChanges);
 
-#ifndef NO_SHAPE
     /* shape our frame to match that of the client's window */
     if (wmGD.hasShape)
     {
@@ -1052,7 +1049,6 @@ void AdoptClient (ClientData *pcd)
                            &clipShaped, &xbs, &ybs, &wbs, &hbs);
        pcd->wShaped = boundingShaped;
     }
-#endif /* NO_SHAPE  */
     /* reparent the window to the base window */
 
     XReparentWindow (DISPLAY, pcd->client, pcd->clientBaseWin, 
@@ -2343,12 +2339,10 @@ void RegenerateClientFrame (ClientData *pcd)
     /* regenerate the graphics */
     GenerateFrameDisplayLists (pcd);
 
-#ifndef NO_SHAPE
     if (wmGD.hasShape && pcd->wShaped)
     {
         SetFrameShape (pcd);
     }
-#endif /*  NO_SHAPE  */
 
 } /* END OF FUNCTION  RegenerateClientFrame  */
 
@@ -2808,8 +2802,6 @@ void PopGadgetOut (ClientData *pcd, int gadget)
     wmGD.gadgetDepressed = 0;
 } /* END OF FUNCTION  PopGadgetOut   */
 
-#ifndef NO_SHAPE
-\f
 /*************************************<->*************************************
  *
  *  SetFrameShape (pcd)
@@ -2896,7 +2888,5 @@ void SetFrameShape (ClientData *pcd)
                                   None, ShapeSet);
     }
 } /* END OF FUNCTION  SetFrameShape  */
-#endif /* NO_SHAPE */
 
 
-\f
index 8ea971541b4c9eaab26182e7f70fee923ab57a06..59d224e23df74d04b189f84dcb6bacb1fe5fdf7e 100644 (file)
@@ -641,13 +641,11 @@ Boolean HandleEventsOnClientWindow (ClientData *pCD, XEvent *pEvent)
 {
     Boolean doXtDispatchEvent = True;
 
-#ifndef NO_SHAPE
     if (pEvent->type == (wmGD.shapeEventBase+ShapeNotify))
     {
         HandleCShapeNotify (pCD, (XShapeEvent *)pEvent);
     }
     else
-#endif /* NO_SHAPE */
     switch (pEvent->type)
     {
        case ColormapNotify:
@@ -822,16 +820,12 @@ void HandleCPropertyNotify (ClientData *pCD, XPropertyEvent *propertyEvent)
                     * The client window has the colormap focus, install the
                     * colormap.
                     */
-#ifndef OLD_COLORMAP /* colormap */
                    /*
                     * We just changed the colormaps list,
                     * so we need to re-run the whole thing.
                     */
                    pCD->clientCmapFlagsInitialized = 0;
                    ProcessColormapList (ACTIVE_PSD, pCD);
-#else /* OSF original */
-                   WmInstallColormap (ACTIVE_PSD, pCD->clientColormap);
-#endif
                }
            }
            break;
@@ -1945,9 +1939,6 @@ void HandleCEnterNotify (ClientData *pCD, XEnterWindowEvent *enterEvent)
  *     * the menu comes unposted, the new window has input focus, but no
  *       client active decorations are changed.
  */
-#ifdef SGI_FOCUS_PATCH
-                   SetKeyboardFocus (pCD, REFRESH_LAST_FOCUS);
-#endif
                }
            }
            if (wmGD.colormapFocusPolicy == CMAP_FOCUS_POINTER)
@@ -2570,8 +2561,6 @@ void HandleClientMessage (ClientData *pCD, XClientMessageEvent *clientEvent)
 } /* END OF FUNCTION HandleClientMessage */
 
 
-#ifndef NO_SHAPE
-\f
 /*************************************<->*************************************
  *
  *  HandleCShapeNotify (pCD, shapeEvent)
@@ -2602,9 +2591,7 @@ HandleCShapeNotify (ClientData *pCD,  XShapeEvent *shapeEvent)
        SetFrameShape (pCD);
     }
 } /* END OF FUNCTION HandleCShapeNotify */
-#endif /* NO_SHAPE */
 
-\f
 /*************************************<->*************************************
  *
  *  GetParentWindow (window)
index 907a82be8e0d3ed070e9b79db86317bb7259affa..e54cdfdf5a37a1d405cc39f8b46cc1dda482e793 100644 (file)
@@ -59,9 +59,7 @@ extern void HandleClientMessage (ClientData *pCD,
 extern void HandleCMotionNotify (ClientData *pCD, XMotionEvent *motionEvent);
 extern void HandleCPropertyNotify (ClientData *pCD, 
                                   XPropertyEvent *propertyEvent);
-#ifndef NO_SHAPE
 extern void HandleCShapeNotify (ClientData *pCD,  XShapeEvent *shapeEvent);
-#endif /* NO_SHAPE */
 extern Boolean HandleEventsOnClientWindow (ClientData *pCD, XEvent *pEvent);
 extern Boolean HandleEventsOnSpecialWindows (XEvent *pEvent);
 
index 5d8d9ddf748c88fd678ab6df6a616641e1707f1f..619722ed67f2b79abdf73c8f4872f2d1db82bd27 100644 (file)
@@ -144,8 +144,6 @@ void InitColormapFocus (WmScreenData *pSD)
 } /* END OF FUNCTION InitColormapFocus */
 
 
-\f
-#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
 
 
-\f
 /*************************************<->*************************************
  *
  *  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 */
 
 
-\f
 /*************************************<->*************************************
  *
  *  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)
index 9562e9d8ff7282cb94c0692ddf1224ad96ec624e..47a5c69ed3441f4ef2d4d25ac44441b2d43edd07 100644 (file)
@@ -32,9 +32,7 @@
 
 extern void InitWorkspaceColormap (WmScreenData *pSD);
 extern void InitColormapFocus (WmScreenData *pSD);
-#ifndef OLD_COLORMAP
 extern void ForceColormapFocus (WmScreenData *pSD, ClientData *pCD);
-#endif
 extern void SetColormapFocus (WmScreenData *pSD, ClientData *pCD);
 extern void WmInstallColormap (WmScreenData *pSD, Colormap colormap);
 extern void ResetColormapData (ClientData *pCD, Window *pWindows, int count);
index 1c0849f9611eef9ed38294a09899aca496fe05fc..9091e332d93834c3ba348ca900482ff95382f138 100644 (file)
@@ -622,38 +622,6 @@ Boolean WmDispatchMenuEvent (XButtonEvent *event)
                doXtDispatchEvent = False;
            }
         }
-#ifdef ROOT_ICON_MENU
-        if (wmGD.menuActive && wmGD.F_NextKeySpec)
-        {
-            if (((wmGD.F_NextKeySpec->state == event->state) ||
-                 (wmGD.F_NextKeySpec->state == NOLOCKMOD(event->state))) &&
-                (wmGD.F_NextKeySpec->keycode == event->button))
-            {
-                /*
-                 * This is a key spec to traverse to the next window
-                 * via the keyboard.
-                 */
-               
-                UnpostMenu (wmGD.menuActive);
-                doXtDispatchEvent = False;
-            }
-        }
-        if (wmGD.menuActive && wmGD.F_PrevKeySpec)
-        {
-            if (((wmGD.F_PrevKeySpec->state == event->state) ||
-                 (wmGD.F_PrevKeySpec->state == NOLOCKMOD(event->state))) &&
-                (wmGD.F_PrevKeySpec->keycode == event->button))
-            {
-                /*
-                 * This is a key spec to traverse to the previous window
-                 * via the keyboard.
-                 */
-               
-                UnpostMenu (wmGD.menuActive);
-                doXtDispatchEvent = False;
-            }
-        }
-#endif /*  ROOT_ICON_MENU */
     }
 
     else if (wmGD.checkHotspot &&
@@ -1218,16 +1186,6 @@ Boolean HandleKeyPress (XKeyEvent *keyEvent,
                {
                  wmGD.passKeysKeySpec = keySpecs;
                }
-#ifdef ROOT_ICON_MENU
-              else if (keySpecs->wmFunction == F_Next_Key)
-               {
-                  wmGD.F_NextKeySpec = keySpecs;
-               }
-              else if (keySpecs->wmFunction == F_Prev_Key)
-               {
-                  wmGD.F_PrevKeySpec = keySpecs;
-               }
-#endif /* ROOT_ICON_MENU */
              if (!(keySpecs->wmFunction (keySpecs->wmFuncArgs,
                                          functionClient, keyEvent)))
                {
index 26827c96f81285f886e44628d06db8cebe6582d0..7d7df6839eae4153baed09a4dc3b7980de4c0205 100644 (file)
@@ -494,9 +494,7 @@ void HideFeedbackWindow (WmScreenData *pSD)
     if (pSD->feedbackWin)
     {
        XUnmapWindow (DISPLAY, pSD->feedbackWin);
-#ifndef OLD_COLORMAP
        ForceColormapFocus (ACTIVE_PSD, ACTIVE_PSD->colormapFocus);
-#endif
     }
     pSD->fbStyle = FB_OFF;
 }
index 1f9c50daa190b695a98599766f1db0d5e6d0056f..4ab4446e8ad193941cf317ffe7c7b99d3e1568d6 100644 (file)
@@ -955,7 +955,6 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *event)
 #endif
     {
 
-#ifndef NO_SETPGRP
 #if defined(SVR4) || defined(__linux__)
        setsid();
 #else
@@ -968,7 +967,6 @@ Boolean F_Exec (String args, ClientData *pCD, XEvent *event)
        setpgrp(tpid, tpid);
 #endif /* SYSV */
 #endif /* SVR4 */
-#endif /* NO_SETPGRP */
 
        /*
         * Clean up window manager resources.
@@ -1830,30 +1828,10 @@ F_Help_Mode (String args, ClientData *pCD, XEvent *event)
 
 Boolean F_Next_Key (String args, ClientData *pCD, XEvent *event)
 {
-#ifdef ROOT_ICON_MENU
-    Boolean focused = False;
-#endif /*  ROOT_ICON_MENU */
     if (wmGD.keyboardFocusPolicy == KEYBOARD_FOCUS_EXPLICIT)
     {
-#ifdef ROOT_ICON_MENU
-       focused = 
-#endif /*  ROOT_ICON_MENU */
        FocusNextWindow ((unsigned long)args,
                         GetFunctionTimestamp ((XButtonEvent *)event));
-#ifdef ROOT_ICON_MENU
-        if (focused && wmGD.iconClick &&
-            event && event->type == KeyPress &&
-            wmGD.nextKeyboardFocus &&
-            wmGD.nextKeyboardFocus->clientState == MINIMIZED_STATE &&
-            !P_ICON_BOX(wmGD.nextKeyboardFocus))
-        {
-            /*
-             * Post system menu from the icon
-             */
-            F_Post_SMenu (args, wmGD.nextKeyboardFocus, event);
-            return (False);
-        }
-#endif /*  ROOT_ICON_MENU */
     }
 
     return (True);
@@ -1892,16 +1870,12 @@ Boolean F_Prev_Cmap (String args, ClientData *pCD, XEvent *event)
        pCD->clientColormap = pCD->clientCmapList[pCD->clientCmapIndex];
        if (ACTIVE_PSD->colormapFocus == pCD)
        {
-#ifndef OLD_COLORMAP /* colormap */
            /*
             * We just re-ordered the colormaps list,
             * so we need to re-run the whole thing.
             */
            pCD->clientCmapFlagsInitialized = 0;
            ProcessColormapList (ACTIVE_PSD, pCD);
-#else /* OSF original */
-           WmInstallColormap (ACTIVE_PSD, pCD->clientColormap);
-#endif
        }
     }
 
@@ -1934,31 +1908,10 @@ Boolean F_Prev_Cmap (String args, ClientData *pCD, XEvent *event)
 
 Boolean F_Prev_Key (String args, ClientData *pCD, XEvent *event)
 {
-#ifdef ROOT_ICON_MENU
-    Boolean focused = False;
-#endif /*  ROOT_ICON_MENU */
     if (wmGD.keyboardFocusPolicy == KEYBOARD_FOCUS_EXPLICIT)
     {
-#ifdef ROOT_ICON_MENU
-       focused = 
-#endif /*  ROOT_ICON_MENU */
        FocusPrevWindow ((unsigned long)args,
                            GetFunctionTimestamp ((XButtonEvent *)event));
-#ifdef ROOT_ICON_MENU
-        if (focused && wmGD.iconClick &&
-            event && event->type == KeyPress &&
-            wmGD.nextKeyboardFocus &&
-            wmGD.nextKeyboardFocus->clientState == MINIMIZED_STATE &&
-            !P_ICON_BOX(wmGD.nextKeyboardFocus))
-        {
-            /*
-             * Post system menu from the icon
-             */
-            F_Post_SMenu (args, wmGD.nextKeyboardFocus, event);
-            return (False);
-        }
-#endif /*  ROOT_ICON_MENU */
-
     }
 
     return (True);
@@ -2468,16 +2421,12 @@ Boolean F_Next_Cmap (String args, ClientData *pCD, XEvent *event)
        pCD->clientColormap = pCD->clientCmapList[pCD->clientCmapIndex];
        if (ACTIVE_PSD->colormapFocus == pCD)
        {
-#ifndef OLD_COLORMAP /* colormap */
            /*
             * We just re-ordered the colormaps list,
             * so we need to re-run the whole thing.
             */
            pCD->clientCmapFlagsInitialized = 0;
            ProcessColormapList (ACTIVE_PSD, pCD);
-#else /* OSF original */
-           WmInstallColormap (ACTIVE_PSD, pCD->clientColormap);
-#endif
        }
     }
 
index 4b7b37476a22a6c07c5884a2c563821ec31ec6a1..10718ebad7e3cd266f9780528a9bb67c60740f7f 100644 (file)
@@ -51,9 +51,7 @@
 #include <stdio.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
-#ifndef NO_SHAPE
 #include <X11/extensions/shape.h>
-#endif /* NO_SHAPE  */
 #include <X11/IntrinsicP.h>
 #include <X11/Intrinsic.h>
 #include <X11/StringDefs.h>
@@ -1536,19 +1534,15 @@ typedef struct _ClientData
     Colormap   *clientCmapList;
     int                clientCmapCount;                /* len of clientCmapList */
     int                clientCmapIndex;                /* current cmap in list */
-#ifndef OLD_COLORMAP /* colormap */
     int                *clientCmapFlags;               /* installed, uninstalled */
     Bool       clientCmapFlagsInitialized;     /* Are clientCmapFlags valid? */
-#endif
 
     /* associated window data: */
 
     ClientListEntry clientEntry;
     ClientListEntry iconEntry;
     XID                windowGroup;                    /* WM_HINTS field */
-#ifndef NO_OL_COMPAT
     Boolean    bPseudoTransient;               /* transientFor window group */
-#endif /* NO_OL_COMPAT */
     IconBoxData *thisIconBox;                  /* icon box data for self */
                                                /*   if this is an icon box */
     Context    grabContext;                     /* used to support icon box */
@@ -1687,9 +1681,7 @@ typedef struct _ClientData
     Window     attachWindow;           /* _DT_WM_HINTS */
     SlideDirection     slideDirection; /* slide-up direction */
     SlideOutRec        *pSOR;                  /* slide-out record */
-#ifndef NO_SHAPE
     short       wShaped;                /* this window has a bounding shape */
-#endif /* NO_SHAPE  */
 
     int                usePPosition;           /* indicate whether to use PPosition */
 
@@ -1957,7 +1949,6 @@ typedef struct _WmGlobalData
     Atom        xa_DT_WM_LOCK_DISPLAY;
     Atom        xa_DT_WM_READY;
 
-#ifndef NO_OL_COMPAT
     Atom       xa_OL_WIN_ATTR;
     Atom       xa_OL_DECOR_RESIZE;
     Atom       xa_OL_DECOR_HEADER;
@@ -1974,7 +1965,6 @@ typedef struct _WmGlobalData
     Atom       xa_OL_PIN_OUT;
     Atom       xa_OL_MENU_LIMITED;
     Atom       xa_OL_MENU_FULL;
-#endif /* NO_OL_COMPAT */
 
     /* mwm specific appearance and behavior resources and data: */
 
@@ -2038,10 +2028,8 @@ typedef struct _WmGlobalData
     Window     attributesWindow;
     XWindowAttributes  windowAttributes;
 
-#ifndef NO_SHAPE
     Boolean     hasShape;                /* server supports Shape extension */
     int         shapeEventBase, shapeErrorBase;
-#endif /* NO_SHAPE */
     /* Need to replay enter notify events on windows with the
        pointer that used to be modalized.  This is for pointer focus. */
     int         replayEnterEvent;
index 198c55b01a595c0cfe26da49c42b354ce3bd1a0c..f00cfa8a50e870bcfd55699b5fcd9b8f1218e379 100644 (file)
@@ -463,22 +463,6 @@ void WmDtWmStringHelpCB (Widget theWidget,
     char * theHelpString = (char *)client_data;
     pSD = WmScreenDataFromWidget(theWidget);
 
-#ifdef OLD
-    if (XtDisplay(theWidget) == DISPLAY)
-    {
-       WmDtDisplayTopic(pSD->screenTopLevelW1, 
-                         NULL, theHelpString, 
-                         DtHELP_TYPE_STRING, theWidget, True,
-                         NULL, 0, NULL, False, NULL);
-    }
-    else
-    {
-       WmDtDisplayTopic(theWidget, NULL, theHelpString, 
-                         DtHELP_TYPE_STRING, theWidget, True,
-                         NULL, 0, NULL, False, NULL);
-
-    }
-#endif /* OLD */
        WmDtDisplayTopic(pSD->screenTopLevelW1, 
                          NULL, theHelpString, 
                          DtHELP_TYPE_DYNAMIC_STRING, theWidget, True,
@@ -760,12 +744,6 @@ static void WmDtVersionPopupCB (
 
     if (w)
     {
-#ifdef OLD
-       n = 0;
-       XtSetArg (setArgs[n], XmNx, 0);  n++;
-       XtSetArg (setArgs[n], XmNy, 0);  n++;
-#endif /* OLD */
-
         /*
          * Center the Version Dialog on the screen
          */
@@ -973,7 +951,6 @@ void WmDtHelpOnVersion (
                         Widget  parent)
 
 {
-#ifndef NO_DT
 
     Arg                setArgs[10];    
     Arg                setArgs2[5];    
@@ -1050,9 +1027,6 @@ void WmDtHelpOnVersion (
        XtSetValues(versionWidget, setArgs, n);
     }
     XtManageChild(versionWidget);
-
-#endif /* NO_DT */
-
 } /* END OF FUNCTION WmDtHelpOnVersion  */
 
 
@@ -1314,7 +1288,6 @@ WmDtDisplayTopic (
     DisplayTopicInfo *displayTopicInfo)
 
 {
-#ifndef NO_DT
     Arg                setArgs[10]; 
     Arg                smallArgs[2];   
     ArgList  argsNew;
@@ -1526,7 +1499,6 @@ WmDtDisplayTopic (
        }
 
     } /* if n is still 0, we did not find a useful help type */
-#endif /* NO_DT */
 } /* END OF FUNCTION WmDtDisplayTopic  */
 
 
@@ -1646,7 +1618,6 @@ Boolean
 RestoreHelpDialogs(
         WmScreenData *pSD)
 {
-#ifndef NO_DT
     XrmDatabase db;
     XrmName xrm_name[5];
     XrmRepresentation rep_type;
@@ -2034,8 +2005,6 @@ RestoreHelpDialogs(
 
        XrmDestroyDatabase(db);
     }
-#endif /* NO_DT */
-
     return True;
 } /* END OF FUNCTION  RestoreHelpDialogs */
 
@@ -2067,7 +2036,6 @@ void
 SaveHelpResources(
         WmScreenData *pSD)
 {
-#ifndef NO_DT
     PtrWsDtHelpData  pHelp;
     CacheListStruct *pTemp; 
     Arg getArgs[20];
@@ -2389,7 +2357,6 @@ SaveHelpResources(
        _DtAddToResource (DISPLAY, data);
        XtFree(data);
     }
-#endif /*  NO_DT */
 } /* END OF FUNCTION  SaveHelpResources */
 
 
@@ -2592,25 +2559,6 @@ wmDtHelpSetPosition(
            GetSystemMenuPosition (pHelp->pCDforClient, 
                                   &x, &y, height,
                                   (Context)0);
-#ifdef NO
-           if(y < pHelp->pCDforClient->frameInfo.y)
-           {
-               if (!XFindContext (DISPLAY, XtWindow(pHelp->shell),
-                                  wmGD.windowContextType, 
-                                  (caddr_t *)&pCDforHelp))
-               {
-                   if (wmGD.positionIsFrame)
-                   {
-/*                     x = x - pCDforHelp->clientOffset.x;*/
-                       y = y - pCDforHelp->clientOffset.x;
-                   }
-               }
-               else
-               {
-                   y = y - (2 * pSD->frameBorderWidth);
-               }
-           }
-#endif
        }
        else
        {
@@ -2642,24 +2590,6 @@ wmDtHelpSetPosition(
        XtSetArg (al[ac], XmNwindowGroup, &wGroup); ac++;
        XtGetValues (pHelp->shell, al, ac);
 
-#ifdef FUTURE
-       if (pHelp->contextForClient != F_CONTEXT_ICON)
-       {
-           XtSetArg (args[n], XmNwindowGroup, 
-                     pHelp->pCDforClient->client); 
-           n++;
-       }
-       else if (pSD->useIconBox && P_ICON_BOX(pHelp->pCDforClient))
-       {
-           XtSetArg (args[n], XmNwindowGroup, 
-                     P_ICON_BOX(pHelp->pCDforClient)->pCD_iconBox->client); 
-           n++;
-       }
-       else
-       {
-           XtSetArg (args[n], XmNwindowGroup, 0); n++;
-       }
-#else /* FUTURE */
         if (wGroup != pHelp->pCDforClient->client)
        {
            /*
@@ -2671,7 +2601,6 @@ wmDtHelpSetPosition(
        }
 
        XtSetArg (args[n], XmNwindowGroup, pHelp->pCDforClient->client); n++;
-#endif /* FUTURE */
     }
     else
     {
index ab98c03feba04c4eb60c5d144137298c024022b3..6e71d904f4ed2ed66930591d9a91cc32490623d9 100644 (file)
@@ -122,14 +122,6 @@ Pixmap MakeClientIconPixmap (
        return ((Pixmap)NULL);
     }
 
-#ifdef DISALLOW_DEEP_ICONS
-    if (depth != 1)
-    {
-       Warning (((char *)GETMESSAGE(38, 10, "Color icon pixmap not supported")));
-       return ((Pixmap)NULL);
-    }
-#endif
-
     /*
      * Color the bitmap, center it in a pixmap ....
      */
@@ -582,7 +574,6 @@ Pixmap MakeIconPixmap (ClientData *pCD, Pixmap bitmap, Pixmap mask, unsigned int
     XChangeGC (DISPLAY, imageGC, gc_mask, &gcv);
 
     /* copy the bitmap to the pixmap */
-#ifndef DISALLOW_DEEP_ICONS
     if ((depth > 1) &&
         (depth == DefaultDepth(DISPLAY, pSD->screen)))
     {
@@ -595,7 +586,6 @@ Pixmap MakeIconPixmap (ClientData *pCD, Pixmap bitmap, Pixmap mask, unsigned int
 #endif /* NO_CLIP_CENTER */
     }
     else
-#endif /* DISALLOW_DEEP_ICONS */
 #ifndef NO_CLIP_CENTER
     XCopyPlane (DISPLAY, bitmap, iconPixmap, imageGC, src_x, src_y, width, 
                height, dest_x, dest_y, 1L);
index fc3be949a88b748eaf4d94dbda10a5025adfe36e..4e41ba54d85ff9746daf2b3922ed4731bd4d8d27 100644 (file)
@@ -44,9 +44,7 @@
 #include "WmICCC.h"
 #define DTWM_NEED_FNTPL
 #include "WmIBitmap.h"
-#ifndef NO_OL_COMPAT
 #include "WmOL.h"
-#endif /* NO_OL_COMPAT */
 #include <X11/Xos.h>
 #include <X11/cursorfont.h>
 #include <Xm/Xm.h>
@@ -695,14 +693,10 @@ void InitWmGlobal (int argc, char *argv [], char *environ [])
                    wmGD.xa_DT_WM_EXIT_SESSION = atoms[XA_DT_WM_EXIT_SESSION];
                     wmGD.xa_DT_WM_LOCK_DISPLAY = atoms[XA_DT_WM_LOCK_DISPLAY];
                     wmGD.xa_DT_WM_READY = atoms[XA_DT_WM_READY];
-#ifndef NO_OL_COMPAT
                    InitOLCompat();
-#endif /* NO_OL_COMPAT */
-#ifndef NO_SHAPE
                    wmGD.hasShape = XShapeQueryExtension (DISPLAY,
                                                          &wmGD.shapeEventBase,
                                                          &wmGD.shapeErrorBase);
-#endif /*  NO_SHAPE  */
 
                     wmGD.replayEnterEvent = False;
                    wmGD.menuActive = NULL;
@@ -761,19 +755,6 @@ void InitWmGlobal (int argc, char *argv [], char *environ [])
                    _DtGetSmWindow(DISPLAY, 
                                  RootWindow(DISPLAY, 0), 
                                  &wmGD.dtSmWindow) ;
-#ifdef PANACOMM
-                   /*
-                    * If this is the first screen we've managed,
-                    * tell the session manager we're ready 
-                    */
-                   if (!processedGlobalResources)
-                   {
-                       SendClientMsg( wmGD.dtSmWindow,
-                                     (long) wmGD.xa_DT_SM_WM_PROTOCOL,
-                                     (long) wmGD.xa_DT_WM_READY,
-                                     CurrentTime, NULL, 0);
-                   }
-#endif /* PANACOMM */
 
                    /* create topmost shell (application shell) */
                    argnum = 0;
index 738fe05979a83f24e24f0cca5bc91b6974d1c7f3..a2347f5c3ded273999f3490cd0fe99c0c464cf6b 100644 (file)
@@ -159,7 +159,6 @@ void AdoptInitialClients (WmScreenData *pSD)
     if (XQueryTree (DISPLAY, pSD->rootWindow, &root, &parent, &clients,
            &nclients))
     {
-#ifndef DONT_FILTER_ICON_WINDOWS
        /*
         * Filter out icon windows so they don't get managed as a client
         * window.  Icon windows will be process in SetupClientIconWindow().
@@ -181,7 +180,6 @@ void AdoptInitialClients (WmScreenData *pSD)
                }
            }
        }
-#endif
 
        for (i = 0; i < nclients; i++)
        {
@@ -1153,9 +1151,7 @@ void WithdrawWindow (ClientData *pCD)
        }
        XtFree ((char *) (pCD->cmapWindows));
        XtFree ((char *) (pCD->clientCmapList));
-#ifndef OLD_COLORMAP /* colormap */
        XtFree ((char  *) (pCD->clientCmapFlags));
-#endif
     }
 
     /*
index 8a7bc01217e3a9ec7bd9207c3d7a55e2460e4520..d7a533308bcafefe6d4702f51b2a688697cffd9e 100644 (file)
@@ -1439,30 +1439,8 @@ void PostMenu (MenuSpec *menuSpec, ClientData *pCD, int x, int y, unsigned int b
                           passedInEvent->xbutton.time);
     }
     
-#ifndef ALTERNATE_POSTMENU
-
     XtManageChild (menuSpec->menuWidget);
 
-#else
-    if (flags & POST_STICKY)
-    {
-       _XmSetPopupMenuClick(menuSpec->menuWidget, True);
-    }
-    else
-    {
-       _XmSetPopupMenuClick(menuSpec->menuWidget, False);
-    }
-
-    /* 
-     * Post the menu by calling the convenience routine that verifies
-     * the button event, updates the Xt timestamp, and finally manages
-     * the pane.
-     */
-
-    _XmPostPopupMenu( menuSpec->menuWidget, passedInEvent);
-#endif
-
-
     /*
      *  set the traversal state.
      */
@@ -1516,9 +1494,7 @@ void UnpostMenu (MenuSpec *menuSpec)
      */
     {
         XtUnmanageChild (menuSpec->menuWidget);
-#ifndef OLD_COLORMAP
         ForceColormapFocus (ACTIVE_PSD, ACTIVE_PSD->colormapFocus);
-#endif
     }
 
 } /* END OF FUNCTION UnpostMenu */
@@ -1612,9 +1588,7 @@ static void UnmapCallback (Widget w, XtPointer client_data,
        PopGadgetOut(wmGD.gadgetClient, FRAME_SYSTEM);
     }
 
-#ifndef OLD_COLORMAP
     ForceColormapFocus (ACTIVE_PSD, ACTIVE_PSD->colormapFocus);
-#endif
     PullExposureEvents();
 
 } /* END OF FUNCTION UnmapCallback */
index 6a7f9c5a0754b16e082ea5bd32e6653f44e738e7..af8b020139d5c74ef65b5afadbad495007b3ad28 100644 (file)
@@ -20,7 +20,6 @@
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
-#ifndef NO_OL_COMPAT
 /* 
  * (c) Copyright 1989 Sun Microsystems, Inc.
  * (c) Copyright 1993 HEWLETT-PACKARD COMPANY 
@@ -469,4 +468,3 @@ ProcessOLDecoration(
 
 } /* END OF FUNCTION ProcessOLDecoration */
 
-#endif /* NO_OL_COMPAT */
index 0989557b09dc24ecf52fc4ac0db1161c2e970afd..2bade0c4dc5144bc60a446a927fbfa6d9ea24493 100644 (file)
@@ -28,7 +28,6 @@
 
 #ifndef _WM_OL_H
 #define _WM_OL_H
-#ifndef NO_OL_COMPAT
 
 /*
  * Property Names 
@@ -127,6 +126,5 @@ extern void ProcessOLDecoration(ClientData *pCD);
 #define GetOLDecorDel(pcd,ptr) (GetOLDecorFlags(pcd,wmGD.xa_OL_DECOR_DEL,ptr))
 
 
-#endif /* NO_OL_COMPAT */
 /* Do not add anything after the following #endif */
 #endif /* _WM_OL_H */
index 30a084dde7ff768efddc661ed454536a10bd8251..ba8bf4e7b0f3f1501d419b01229ddeeed9df5e04 100644 (file)
@@ -794,9 +794,7 @@ void ProcessWmColormapWindows (ClientData *pCD)
     XWindowAttributes wAttributes;
     ClientData *pcd;
     XSetWindowAttributes sAttributes;
-#ifndef OLD_COLORMAP /* colormaps */
     int *pCmapFlags;
-#endif
 
 
     /*
@@ -832,7 +830,6 @@ void ProcessWmColormapWindows (ClientData *pCD)
                XtFree ((char *)pWindows);
            }
         }
-#ifndef OLD_COLORMAP /* colormap */
        /* Is the above OSF code a bug -- allocates one extra byte, rather */
        /* than one extra element, for the top window if needed? */
        else if ( ! (pCmapFlags = (int *)XtCalloc(nitems+1,sizeof(int)))) {
@@ -840,7 +837,6 @@ void ProcessWmColormapWindows (ClientData *pCD)
                        Warning (((char *)GETMESSAGE(54, 4, "Insufficient memory for window manager flags")));
                        XtFree ((char *)pWindows); XtFree ((char *)pColormaps);
        }
-#endif
        else
        {
            /*
@@ -921,9 +917,7 @@ void ProcessWmColormapWindows (ClientData *pCD)
                pCD->cmapWindows = pWindows;
                pCD->clientCmapList = pColormaps;
                pCD->clientCmapIndex = 0;
-#ifndef OLD_COLORMAP /* colormap */
                pCD->clientCmapFlags = pCmapFlags;
-#endif
            }
            else
            {
@@ -935,9 +929,7 @@ void ProcessWmColormapWindows (ClientData *pCD)
                pCD->clientCmapCount = 0;
                XtFree ((char *)pWindows);
                XtFree ((char *)pColormaps);
-#ifndef OLD_COLORMAP /* colormap */
                XtFree((char *)pCmapFlags);
-#endif
            }
        }
     }
@@ -1656,14 +1648,6 @@ GetDtWmRequest (
      */
     if (property == NULL)
     {
-#ifdef PARANOID
-       /*
-        * Lock down the server to prevent changes to this
-        * property while we "edit" it.
-        */
-       XGrabServer(DISPLAY);
-#endif /* PARANOID */
-
        /*
         * Read the property and delete it.
         */
@@ -1673,11 +1657,6 @@ GetDtWmRequest (
                                     &actualType, &actualFormat, &nitems,
                                     &leftover, (unsigned char **)&property);
 
-#ifdef PARANOID
-       /* Give the server back */ 
-       XUngrabServer(DISPLAY);
-#endif /* PARANOID */
-
        /* 
         * Validate the property that we've read
         */
index 5fde201a816ffff0694e8b29eba0c42de44f3ac0..edf544b8669666259998df832a9ee667a21ca836 100644 (file)
@@ -46,9 +46,7 @@
 #include "WmKeyFocus.h"
 #include "WmMenu.h"
 #include "WmWinInfo.h"
-#ifndef NO_WMQUERY 
 #include "WmEvent.h"
-#endif /* NO_WMQUERY */
 #include "WmPanelP.h"
 
 /*
@@ -56,7 +54,6 @@
  */
 
 #include "WmProtocol.h"
-#ifndef NO_WMQUERY
 static Boolean wmq_convert (Widget w, Atom *pSelection, Atom *pTarget, 
     Atom *pType_return, XtPointer *pValue_return, unsigned long *pLength_return,
     int *pFormat_return);
@@ -68,13 +65,11 @@ static void wmq_add_xid (XID win);
 static void wmq_done (Widget w, Atom *pSelection, Atom *pTarget);
 static void wmq_lose (Widget w, Atom *pSelection);
 static void wmq_bump_xids(void);
-#endif /* NO_WMQUERY */
 
 
 /*
  * Global Variables:
  */
-#ifndef NO_WMQUERY
 Atom *xa_WM_QUERY = NULL;
 Atom xa_WM_POINTER_WINDOW;
 Atom xa_WM_CLIENT_WINDOW;
@@ -82,7 +77,6 @@ Atom xa_WM_ALL_CLIENTS;
 XID *pXids = NULL;
 int numXids = -1;
 int curXids = 0;
-#endif /* NO_WMQUERY */
 
 
 \f
@@ -110,10 +104,8 @@ void SetupWmICCC (void)
           XA_WM_SAVE_YOURSELF, XA_WM_DELETE_WINDOW,
           XA_WM_COLORMAP_WINDOWS, XA_WM_TAKE_FOCUS, XA_MWM_HINTS,
           XA_MWM_MENU, XA_MWM_MESSAGES, XA_MOTIF_WM_OFFSET,
-#if !defined(NO_WMQUERY)
           XA_MOTIF_WM_CLIENT_WINDOW, XA_MOTIF_WM_POINTER_WINDOW,
           XA_MOTIF_WM_ALL_CLIENTS,
-#endif
           XA_COMPOUND_TEXT, NUM_ATOMS };
 
     static char *atom_names[] = {
@@ -121,7 +113,6 @@ void SetupWmICCC (void)
           _XA_WM_SAVE_YOURSELF, _XA_WM_DELETE_WINDOW,
           _XA_WM_COLORMAP_WINDOWS, _XA_WM_TAKE_FOCUS, _XA_MWM_HINTS,
           _XA_MWM_MENU, _XA_MWM_MESSAGES, _XA_MOTIF_WM_OFFSET,
-#if !defined(NO_WMQUERY)
 # ifdef _XA_MOTIF_WM_CLIENT_WINDOW
           _XA_MOTIF_WM_CLIENT_WINDOW, _XA_MOTIF_WM_POINTER_WINDOW,
           _XA_MOTIF_WM_ALL_CLIENTS, 
@@ -129,7 +120,6 @@ void SetupWmICCC (void)
           "_MOTIF_WM_CLIENT_WINDOW", "_MOTIF_WM_POINTER_WINDOW",
           "_MOTIF_WM_ALL_CLIENTS",
 # endif
-#endif
           "COMPOUND_TEXT"
     };
 
@@ -157,7 +147,6 @@ void SetupWmICCC (void)
 
     wmGD.xa_COMPOUND_TEXT = atoms[XA_COMPOUND_TEXT];
 
-#ifndef NO_WMQUERY
     if (!(xa_WM_QUERY = (Atom *) XtMalloc (wmGD.numScreens * (sizeof (Atom)))))
     {
        Warning (((char *)GETMESSAGE(56, 2, "Insufficient memory to XInternAtom _MOTIF_WM_QUERY_nn")));
@@ -181,8 +170,6 @@ void SetupWmICCC (void)
     xa_WM_CLIENT_WINDOW  = atoms[XA_MOTIF_WM_CLIENT_WINDOW];
     xa_WM_POINTER_WINDOW = atoms[XA_MOTIF_WM_POINTER_WINDOW];
     xa_WM_ALL_CLIENTS    = atoms[XA_MOTIF_WM_ALL_CLIENTS];
-#endif /* NO_WMQUERY */
-
 
     /*
      * Setup the icon size property on the root window.
@@ -205,7 +192,6 @@ void SetupWmICCC (void)
        }
     }
 
-#ifndef NO_WMQUERY
     /*
      * Assert ownership of the WM_QUERY selection
      */
@@ -224,9 +210,6 @@ void SetupWmICCC (void)
              }
        }
     }
-#endif /* NO_WMQUERY */
-
-
 } /* END OF FUNCTION SetupWmICCC */
 
 
@@ -692,8 +675,6 @@ void TimeoutProc (caddr_t client_data, XtIntervalId *id)
 } /* END OF FUNCTION TimeoutProc */
 
 
-#ifndef NO_WMQUERY 
-\f
 /*************************************<->*************************************
  *
  *  Boolean wmq_convert (w, pSelection, pTarget, pType_return, 
@@ -1070,4 +1051,3 @@ wmq_bump_xids ( void )
     }
 }
 
-#endif /* NO_WMQUERY */
index 5e6fc5577b372fcf5d4edbd4c335555b0dfbf94d..a35a91eca89fc76b26c6d0f4457567c9619886bb 100644 (file)
@@ -139,7 +139,6 @@ char defaultSystemMenuName[] = "_MwmWindowMenu_";
 char defaultSystemMenuName[] = "DefaultWindowMenu";
 #endif /* NO_MESSAGE_CATALOG */
 char builtinSystemMenuName[] = "_MwmWindowMenu_";
-#ifndef MCCABE
 #define BUILTINSYSTEMMENU "_MwmWindowMenu_\n\
 {\n\
        Restore         _R      Alt<Key>F5      f.restore\n\
@@ -434,14 +433,10 @@ void InitBuiltinSystemMenu(void)
     
 } /* END OF FUNCTION  InitBuiltinSystemMenu */
 #endif /* NO_MESSAGE_CATALOG */
-#else /* MCCABE */
-char builtinSystemMenu[];
-#endif /* MCCABE */
 
 #define HARD_CODED_PRIMARY   3
 char defaultRootMenuName[] = "DefaultRootMenu";
 char builtinRootMenuName[] = "_MwmRootMenu_";
-#ifndef MCCABE
 #define BUILTINROOTMENU "DefaultRootMenu\n\
 {\n\
        \"Root Menu\"           f.title\n\
@@ -454,16 +449,12 @@ char builtinRootMenuName[] = "_MwmRootMenu_";
        \"Restart...\"          f.restart\n\
 }";
 char builtinRootMenu[] = BUILTINROOTMENU
-#else /* MCCABE */
-char builtinRootMenu[];
-#endif /* MCCABE */
 
 
 /* builtin key bindings specification */
 
 char defaultKeyBindingsName[] = "DefaultKeyBindings";
 char builtinKeyBindingsName[] = "_MwmKeyBindings_";
-#ifndef MCCABE
 #define BUILTINKEYBINDINGS "_MwmKeyBindings_\n\
 {\n\
        Shift<Key>Escape        window|icon             f.post_wmenu\n\
@@ -480,10 +471,6 @@ char builtinKeyBindingsName[] = "_MwmKeyBindings_";
 }";
 char builtinKeyBindings[] = BUILTINKEYBINDINGS
 
-#else
-char builtinKeyBindings[];
-#endif
-
 /*
  * NOTE: Default Toggle Behavior key bindings.  There are TWO key bindings as
  * of 1.1.4 and 1.2.  Make sure you make any modify builtinKeyBindings (above)
@@ -491,7 +478,6 @@ char builtinKeyBindings[];
  */
 
 char behaviorKeyBindingName[] = "_MwmBehaviorKey_";
-#ifndef MCCABE
 #define BEHAVIORKEYBINDINGS "_MwmBehaviorKey_\n\
 {\n\
        Alt Shift Ctrl<Key>exclam root|icon|window      f.set_behavior\n\
@@ -499,17 +485,11 @@ char behaviorKeyBindingName[] = "_MwmBehaviorKey_";
 }";
 char behaviorKeyBindings[] = BEHAVIORKEYBINDINGS
 
-#else
-char behaviorKeyBindings[];
-#endif
-
-
 /* default button bindings specification */
 /* note - the %s will be replaced by the real DefaultRootMenu */
 
 char defaultButtonBindingsName[] = "DefaultButtonBindings";
 char builtinButtonBindingsName[] = "_MwmButtonBindings_";
-#ifndef MCCABE
 # define BUILTINBUTTONBINDINGS "_MwmButtonBindings_\n\
 {\n\
        <Btn1Down>      icon|frame      f.raise\n\
@@ -518,11 +498,6 @@ char builtinButtonBindingsName[] = "_MwmButtonBindings_";
 }";
 char builtinButtonBindings[] = BUILTINBUTTONBINDINGS
 
-#else
-char builtinButtonBindings[];
-#endif
-
-
 static ClientData *_pCD;
 static String _defaultBackground;
 static String _defaultActiveBackground;
index 5cb576dd9e924b3142a92e8e99b3e7b95080ae02..c3dd6aa816b06658ba95d6b7dd9ca85c0c51ee73 100644 (file)
@@ -1082,16 +1082,11 @@ void CompleteFrameConfig (ClientData *pcd, XEvent *pev)
         * unexpectedly.
         */
 
-#ifndef CONFIG_RELATIVE_TO_CLIENT
-
        tmpX = resizeX;
        tmpY = resizeY;
 
        /* Use dummy x,y so we don't add frame offset to client location */
        FrameToClient (pcd, &tmpX, &tmpY, &resizeWidth, &resizeHeight);
-#else
-       FrameToClient (pcd, &resizeX, &resizeY, &resizeWidth, &resizeHeight);
-#endif
 
        tmpWidth = resizeWidth;
        tmpHeight = resizeHeight;
@@ -1286,13 +1281,8 @@ void CompleteFrameConfig (ClientData *pcd, XEvent *pev)
        else {  /* assume normal window frame */
            /* reconfigure the window(s) */
            ProcessNewConfiguration (pcd, 
-#ifndef CONFIG_RELATIVE_TO_CLIENT
                                     moveX,
                                     moveY,
-#else
-                                    moveX + offsetX,
-                                    moveY + offsetY,
-#endif
                                     (unsigned int) 
                                         (moveWidth - 2*offsetX),
                                     (unsigned int) 
@@ -2024,7 +2014,6 @@ void ProcessNewConfiguration (ClientData *pCD, int x, int y, unsigned int width,
        }
     }
 
-#ifndef CONFIG_RELATIVE_TO_CLIENT
     /*
      * If positionIsFrame or user initiated configuration request,
      * then adjust client position to by frame_width and frame_height.
@@ -2034,7 +2023,6 @@ void ProcessNewConfiguration (ClientData *pCD, int x, int y, unsigned int width,
        xoff = pCD->clientOffset.x;
        yoff = pCD->clientOffset.y;
     }
-#endif
 
     /*
      * Changes in position update maximum geometry on maximized windows
index 18b5b6ff70620a74292046ddcf68f1ffe0c767f5..9688aaa98f3de93493b791b91b1f2a3b789c3b9d 100644 (file)
@@ -195,9 +195,7 @@ GetClientInfo (WmScreenData *pSD, Window clientWindow, long manageFlags)
     pCD->piconBottomShadows = NULL;
     pCD->internalBevel = (wmGD.frameStyle == WmSLAB) ? 0 : 
                                                FRAME_INTERNAL_SHADOW_WIDTH;
-#ifndef NO_OL_COMPAT
     pCD->bPseudoTransient = False;
-#endif /* NO_OL_COMPAT */
 
     pCD->maxWidth = pCD->maxWidthLimit = BIGSIZE;
     pCD->maxHeight = pCD->maxHeightLimit = BIGSIZE;
@@ -564,10 +562,7 @@ GetWmClientInfo (WmWorkspaceData *pWS,
      */
     pCD->numInhabited = 0;
     pCD->windowGroup = 0L;
-#ifndef NO_OL_COMPAT
     pCD->bPseudoTransient = False;
-#endif /* NO_OL_COMPAT */
-
 
     /*
      * Set up _MWM_HINTS data.
@@ -799,14 +794,8 @@ ProcessWmClass (ClientData *pCD)
     XClassHint classHint;
 
 
-#ifdef PORT_OLDXLIB
-    classHint.res_class = "";
-    classHint.res_name = "";
-    XGetClassHint (DISPLAY, pCD->client, &classHint);
-#else
     if ((HasProperty (pCD, XA_WM_CLASS)) &&
        (XGetClassHint (DISPLAY, pCD->client, &classHint)))
-#endif
     {
        /* the WM_CLASS property exists for the client window */
        pCD->clientClass = classHint.res_class;
@@ -993,7 +982,6 @@ ProcessWmHints (ClientData *pCD, Boolean firstTime)
 
     if (firstTime)
     {
-#ifndef NO_OL_COMPAT
         ClientData *leader;
        Atom *pIDs;
        unsigned int numIDs = 0;
@@ -1041,7 +1029,6 @@ ProcessWmHints (ClientData *pCD, Boolean firstTime)
        {
            pCD->windowGroup = 0L;
        }
-#endif /* NO_OL_COMPAT */
         /*
          * The window manger does not do anything with the input hint.  Input
          * always goes to the selected window.
@@ -1253,21 +1240,6 @@ ProcessWmHints (ClientData *pCD, Boolean firstTime)
                }
            }
        }
-
-#ifdef NO_OL_COMPAT
-        /*
-         * Save the window group.
-         */
-
-        if (flags & WindowGroupHint)
-       {
-           pCD->windowGroup = pXWMHints->window_group;
-       }
-       else
-       {
-           pCD->windowGroup = 0L;
-       }
-#endif /* NO_OL_COMPAT */
     }
     else /* not the first time the hints are processed */
     {
@@ -2132,11 +2104,7 @@ WmICCCMToXmString (XTextProperty *wmNameProp)
   xms_return = xmsTable[0];
   for (i = 1; i < nStrings; i++)
   {
-#ifdef CONCAT_TEXTLIST
-      xms_return = XmStringConcatAndFree(xms_return, xmsTable[i]);
-#else
       XmStringFree(xmsTable[i]);
-#endif /* CONCAT_TEXTLIST */
   }
   XtFree((char *)xmsTable);
 
@@ -3916,12 +3884,10 @@ ProcessMwmHints (ClientData *pCD)
 
        XFree ((char*)pHints);
     }
-#ifndef NO_OL_COMPAT
     else
     {
        ProcessOLDecoration (pCD);
     }
-#endif /* NO_OL_COMPAT */
 
     /* 
      * If primary window can't move between workspaces, then