Remove ancient HP VUE compatibility support
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user