Remove ancient HP VUE compatibility support

This commit is contained in:
wmoxam
2019-10-14 09:39:50 -04:00
committed by Jon Trulson
parent 4107a1b6be
commit de81a5b518
10 changed files with 2 additions and 404 deletions

View File

@@ -86,10 +86,6 @@ _DtWsmGetDtWmHints(
unsigned long leftover, items, length;
int rcode;
Atom property;
#ifdef HP_VUE
unsigned long oldlength;
#endif /* HP_VUE */
property = XmInternAtom(display, _XA_DT_WM_HINTS, False);
length = sizeof (DtWmHints) / sizeof (long);
@@ -121,69 +117,6 @@ _DtWsmGetDtWmHints(
*ppDtWmHints = NULL;
}
}
#ifdef HP_VUE
else {
/*
* Didn't get the Dt hints, try to get the Vue hints.
* Not that the Vue hints had the same structure, just
* under a different property name.
*/
property = XmInternAtom(display, _XA_VUE_WM_HINTS, False);
/*
* Property previously existed without attachWindow.
*/
oldlength = length - (sizeof(Window)/sizeof(long));
*ppDtWmHints = NULL;
if ((rcode=XGetWindowProperty(
display,
window,
property,
0L, /* offset */
length,
False, /* delete */
property, /* req_type */
&actualType,
&actualFormat,
&items, /* items returned */
&leftover,
(unsigned char **)ppDtWmHints))==Success)
{
if ((actualType != property) ||
(items < oldlength))
{
/* wrong type, force failure */
rcode = BadValue;
if (actualType != None)
{
XFree ((char *)*ppDtWmHints);
}
*ppDtWmHints = NULL;
}
if (*ppDtWmHints && (items < length))
{
DtWmHints *pvh;
/* assume old property, return full sized
property with empty values */
pvh = (DtWmHints *) malloc (length * sizeof (long));
pvh->flags = (*ppDtWmHints)->flags;
pvh->functions = (*ppDtWmHints)->functions;
pvh->behaviors = (*ppDtWmHints)->behaviors;
pvh->attachWindow = NULL;
XFree ((char *) *ppDtWmHints);
*ppDtWmHints = pvh;
}
}
}
#endif /* HP_VUE */
return(rcode);
} /* END OF FUNCTION _DtWsmGetDtWmHints */

View File

@@ -77,14 +77,6 @@ static int _GetWorkspacesOccupied(
Atom **ppaWs,
unsigned long *pNumWs,
Atom property) ;
#ifdef HP_VUE
static int _GetWorkspacePresence(
Display *display,
Window window,
Atom **ppWsPresence,
unsigned long *pNumPresence,
Atom property ) ;
#endif /* HP_VUE */
/******** End Static Function Declarations ********/
@@ -159,79 +151,7 @@ _GetWorkspacesOccupied(
} /* END OF FUNCTION GetWorkspacesOccupied */
#ifdef HP_VUE
/*************************************<->*************************************
*
* int _GetWorkspacePresence (display, window, ppWsPresence,
* pNumPresence, property)
*
*
* Description:
* -----------
* Get the contents of the _DT_WORKSPACE_PRESENCE property on a window
*
*
* Inputs:
* ------
* display - display
* window - window to get hints from
* ppWsPresence - pointer to a pointer to return
* pNumPresence - pointer to a number to return
* property - the property atom
*
* Outputs:
* --------
* *ppWsPresence - points to the list of workspace info structures
* (NOTE: This should be freed using XFree)
* *pNumPresence - the number of workspace info structure in the list
* Return - status from XGetWindowProperty
*
* Comments:
* ---------
* Assumes that less than BUFSIZ bytes will be returned. This code
* won't work for very large amounts of info (lots of workspaces).
*
*************************************<->***********************************/
static int
_GetWorkspacePresence(
Display *display,
Window window,
Atom **ppWsPresence,
unsigned long *pNumPresence,
Atom property )
{
Atom actualType;
int actualFormat;
unsigned long leftover;
int rcode;
*ppWsPresence = NULL;
if ((rcode=XGetWindowProperty(display,window,
property,0L, (long)BUFSIZ,
False,property,
&actualType,&actualFormat,
pNumPresence,&leftover,(unsigned char **)ppWsPresence))==Success)
{
if (actualType != property)
{
/* wrong type, force failure */
*pNumPresence = 0;
rcode = BadValue;
if (actualType != None)
{
XFree ((char *)*ppWsPresence);
}
}
}
return(rcode);
} /* END OF FUNCTION GetWorkspacePresence */
#endif /* HP_VUE */
/*************************************<->*************************************
*
* int DtWsmGetWorkspacesOccupied (display, window, ppaWs, pNumWs)
@@ -277,18 +197,6 @@ DtWsmGetWorkspacesOccupied(
pNumWs,
XmInternAtom(display, _XA_DT_WORKSPACE_PRESENCE,
False));
#ifdef HP_VUE
/*
* Be compatible with HP VUE
*/
if (rcode != Success)
{
rcode = _GetWorkspacePresence (display, window, ppaWs,
pNumWs,
XmInternAtom(display, _XA_VUE_WORKSPACE_PRESENCE,
False));
}
#endif /* HP_VUE */
_DtSvcAppUnlock(app);
return (rcode);

View File

@@ -31,8 +31,7 @@
**
** Description: Defines PRIVATE properties, structures, and
** parameters used for communication with the
** workspace manager. This also includes some
** backward compatibility stuff for HP_VUE.
** workspace manager.
**
** (c) Copyright 1996 Digital Equipment Corporation.
** (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
@@ -162,19 +161,6 @@ typedef struct _DtWmHints
#define DtWM_BEHAVIOR_SUBPANEL (1L << 2)
#define DtWM_BEHAVIOR_SUB_RESTORED (1L << 3)
#ifdef HP_VUE
/*
* For Compatibility with some old HP VUE clients
*/
#define _XA_VUE_WORKSPACE_INFO "_VUE_WORKSPACE_INFO"
#define _XA_VUE_WORKSPACE_HINTS "_VUE_WORKSPACE_HINTS"
#define _XA_VUE_WORKSPACE_PRESENCE "_VUE_WORKSPACE_PRESENCE"
#define _XA_VUE_WM_REQUEST "_VUE_WM_REQUEST"
#define _XA_VUE_WM_HINTS "_VUE_WM_HINTS"
#endif /* HP_VUE */
/**********************************************************************
* Session atom names
**********************************************************************/
@@ -261,29 +247,6 @@ typedef void (*DtWsmMarqueeSelectionProc) ();
* NOTE: The "(client -> dtwm)" indication calls out the direction
* of information flow. In this case, the client writes the
* property and dtwm reads the property.
*
*/
#ifdef HP_VUE
/*
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
* % _VUE_WORKSPACE_INFO is obsolete, but maintained for %
* % backward compatiblity. Its function has been %
* % replaced by %
* % _DT_WORKSPACE_LIST %
* % _DT_WORKSPACE_INFO_<name> %
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
* _VUE_WORKSPACE_INFO (dtwm -> client)
*
* This property is a list of structures that contain information
* on each workspace. Each structure contains the atom representing
* the workspace string name and the window id of the background
* window for the workspace (if any). The first workspace in the
* list is the "active" workspace for the screen. This property is
* placed on the window identified by the "wmWindow" member of
* the _MOTIF_WM_INFO property.
*/
#endif /* HP_VUE */
/*
*
* _DT_WM_REQUEST (client -> dtwm)
*
@@ -329,21 +292,6 @@ typedef struct _DtWorkspaceHints
/* DtWorkspaceHints "wsflags" definitions */
#define DT_WORKSPACE_FLAGS_OCCUPY_ALL (1L << 0)
#ifdef HP_VUE
/*
* Obsolete WorkspaceInfo structure
*/
typedef struct _WorkspaceInfo
{
Atom workspace; /* workspace "name" */
Window backgroundWindow; /* backdrop window ID (if any) */
unsigned long bg; /* backdrop background pixel */
unsigned long fg; /* backdrop foreground pixel */
Atom backdropName; /* atomized name for backdrop */
} WorkspaceInfo;
#endif /* HP_VUE */
/**********************************************************************
* Marquee Selection Structures
**********************************************************************/
@@ -390,41 +338,6 @@ struct _DtWsmCBContext
* Convenience Routines
**********************************************************************/
#ifdef HP_VUE
/*************************************<->*************************************
*
* Status DtGetWorkspaceInfo (display, root, ppWsInfo, pNumInfo)
*
*
* Description:
* -----------
* Get the contents of the _DT_WORKSPACE_INFO property on a window
*
*
* Inputs:
* ------
* display - display
* root - root window of screen being managed
* ppWsInfo - pointer to a pointer (to be returned)
* pNumInfo - pointer to a number (to be returned)
*
* Outputs:
* -------
* *ppWsInfo - pointer to a list of workspace info structures
* *pNumInfo - number of workspace info structures in list
* Return - Success if property fetched ok.
* Failure returns are from XGetWindowProperty
*
*************************************<->***********************************/
extern Status
DtGetWorkspaceInfo(
Display *display,
Window root,
WorkspaceInfo **ppWsInfo,
unsigned long *pNumInfo) ;
#endif /* HP_VUE */
/*************************************<->*************************************
*
* int _DtGetMwmWindow (display, root, pMwmWindow)