Commit 683415df authored by Mike Gabriel's avatar Mike Gabriel

XAPPGROUP: Drop all Xserver code blocks that relate to removed XAPPGROUP extension.

parent 9bc6ff26
...@@ -65,9 +65,6 @@ in this Software without prior written authorization from The Open Group. ...@@ -65,9 +65,6 @@ in this Software without prior written authorization from The Open Group.
#include <nx-X11/extensions/XLbx.h> #include <nx-X11/extensions/XLbx.h>
extern unsigned char LbxReqCode; extern unsigned char LbxReqCode;
#endif #endif
#ifdef XAPPGROUP
#include <nx-X11/extensions/Xagsrv.h>
#endif
#include <stdio.h> /* for file reading operations */ #include <stdio.h> /* for file reading operations */
#include <nx-X11/Xatom.h> /* for XA_STRING */ #include <nx-X11/Xatom.h> /* for XA_STRING */
...@@ -1165,10 +1162,6 @@ SecurityCheckResourceIDAccess( ...@@ -1165,10 +1162,6 @@ SecurityCheckResourceIDAccess(
* use app groups. dpw * use app groups. dpw
*/ */
if (client->trustLevel == clients[cid]->trustLevel if (client->trustLevel == clients[cid]->trustLevel
#ifdef XAPPGROUP
|| (RT_COLORMAP == rtype &&
XagDefaultColormap (client) == (Colormap) id)
#endif
) )
return rval; return rval;
else else
......
...@@ -3711,9 +3711,6 @@ void InitClient(ClientPtr client, int i, void * ospriv) ...@@ -3711,9 +3711,6 @@ void InitClient(ClientPtr client, int i, void * ospriv)
client->CheckAccess = NULL; client->CheckAccess = NULL;
client->authId = 0; client->authId = 0;
#endif #endif
#ifdef XAPPGROUP
client->appgroup = NULL;
#endif
client->fontResFunc = NULL; client->fontResFunc = NULL;
#ifdef SMART_SCHEDULE #ifdef SMART_SCHEDULE
client->smart_priority = 0; client->smart_priority = 0;
...@@ -3886,9 +3883,6 @@ SendConnSetup(register ClientPtr client, char *reason) ...@@ -3886,9 +3883,6 @@ SendConnSetup(register ClientPtr client, char *reason)
client->requestVector = client->swapped ? SwappedProcVector : ProcVector; client->requestVector = client->swapped ? SwappedProcVector : ProcVector;
client->sequence = 0; client->sequence = 0;
#ifdef XAPPGROUP
XagConnectionInfo (client, &lconnSetupPrefix, &lConnectionInfo, &numScreens);
#endif
((xConnSetup *)lConnectionInfo)->ridBase = client->clientAsMask; ((xConnSetup *)lConnectionInfo)->ridBase = client->clientAsMask;
((xConnSetup *)lConnectionInfo)->ridMask = RESOURCE_ID_MASK; ((xConnSetup *)lConnectionInfo)->ridMask = RESOURCE_ID_MASK;
#ifdef MATCH_CLIENT_ENDIAN #ifdef MATCH_CLIENT_ENDIAN
......
...@@ -104,9 +104,6 @@ Equipment Corporation. ...@@ -104,9 +104,6 @@ Equipment Corporation.
#include "dixevents.h" #include "dixevents.h"
#include "globals.h" #include "globals.h"
#ifdef XAPPGROUP
#include <nx-X11/extensions/Xagsrv.h>
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
#define _SECURITY_SERVER #define _SECURITY_SERVER
#include <nx-X11/extensions/security.h> #include <nx-X11/extensions/security.h>
...@@ -607,14 +604,6 @@ CreateWindow(Window wid, register WindowPtr pParent, int x, int y, unsigned w, ...@@ -607,14 +604,6 @@ CreateWindow(Window wid, register WindowPtr pParent, int x, int y, unsigned w,
if (!ancwopt) if (!ancwopt)
ancwopt = FindWindowWithOptional(pParent)->optional; ancwopt = FindWindowWithOptional(pParent)->optional;
if (visual == CopyFromParent) { if (visual == CopyFromParent) {
#ifdef XAPPGROUP
VisualID ag_visual;
if (client->appgroup && !pParent->parent &&
(ag_visual = XagRootVisual (client)))
visual = ag_visual;
else
#endif
visual = ancwopt->visual; visual = ancwopt->visual;
} }
...@@ -1276,22 +1265,6 @@ ChangeWindowAttributes(register WindowPtr pWin, Mask vmask, XID *vlist, ClientPt ...@@ -1276,22 +1265,6 @@ ChangeWindowAttributes(register WindowPtr pWin, Mask vmask, XID *vlist, ClientPt
pVlist++; pVlist++;
if (cmap == CopyFromParent) if (cmap == CopyFromParent)
{ {
#ifdef XAPPGROUP
Colormap ag_colormap;
ClientPtr win_owner;
/*
* win_owner == client for CreateWindow, other clients
* can ChangeWindowAttributes
*/
win_owner = clients[CLIENT_ID(pWin->drawable.id)];
if ( win_owner && win_owner->appgroup &&
!pWin->parent->parent &&
(ag_colormap = XagDefaultColormap (win_owner)))
cmap = ag_colormap;
else
#endif
if (pWin->parent && if (pWin->parent &&
(!pWin->optional || (!pWin->optional ||
pWin->optional->visual == wVisual (pWin->parent))) pWin->optional->visual == wVisual (pWin->parent)))
...@@ -2208,10 +2181,6 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP ...@@ -2208,10 +2181,6 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
h = pWin->drawable.height, h = pWin->drawable.height,
bw = pWin->borderWidth; bw = pWin->borderWidth;
int action, smode = Above; int action, smode = Above;
#ifdef XAPPGROUP
ClientPtr win_owner;
ClientPtr ag_leader = NULL;
#endif
xEvent event; xEvent event;
if ((pWin->drawable.class == InputOnly) && (mask & IllegalInputOnlyConfigureMask)) if ((pWin->drawable.class == InputOnly) && (mask & IllegalInputOnlyConfigureMask))
...@@ -2308,17 +2277,8 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP ...@@ -2308,17 +2277,8 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
else else
pSib = pWin->nextSib; pSib = pWin->nextSib;
#ifdef XAPPGROUP
win_owner = clients[CLIENT_ID(pWin->drawable.id)];
ag_leader = XagLeader (win_owner);
#endif
if ((!pWin->overrideRedirect) && if ((!pWin->overrideRedirect) &&
(RedirectSend(pParent) (RedirectSend(pParent)
#ifdef XAPPGROUP
|| (win_owner->appgroup && ag_leader &&
XagIsControlledRoot (client, pParent))
#endif
)) ))
{ {
memset(&event, 0, sizeof(xEvent)); memset(&event, 0, sizeof(xEvent));
...@@ -2344,16 +2304,6 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP ...@@ -2344,16 +2304,6 @@ ConfigureWindow(register WindowPtr pWin, register Mask mask, XID *vlist, ClientP
event.u.configureRequest.height = h; event.u.configureRequest.height = h;
event.u.configureRequest.borderWidth = bw; event.u.configureRequest.borderWidth = bw;
event.u.configureRequest.valueMask = mask; event.u.configureRequest.valueMask = mask;
#ifdef XAPPGROUP
/* make sure if the ag_leader maps the window it goes to the wm */
if (ag_leader && ag_leader != client &&
XagIsControlledRoot (client, pParent)) {
event.u.configureRequest.parent = XagId (win_owner);
(void) TryClientEvents (ag_leader, &event, 1,
NoEventMask, NoEventMask, NullGrab);
return Success;
}
#endif
event.u.configureRequest.parent = pParent->drawable.id; event.u.configureRequest.parent = pParent->drawable.id;
if (MaybeDeliverEventsToClient(pParent, &event, 1, if (MaybeDeliverEventsToClient(pParent, &event, 1,
SubstructureRedirectMask, client) == 1) SubstructureRedirectMask, client) == 1)
...@@ -2714,32 +2664,14 @@ MapWindow(register WindowPtr pWin, ClientPtr client) ...@@ -2714,32 +2664,14 @@ MapWindow(register WindowPtr pWin, ClientPtr client)
{ {
xEvent event; xEvent event;
Bool anyMarked; Bool anyMarked;
#ifdef XAPPGROUP
ClientPtr win_owner = clients[CLIENT_ID(pWin->drawable.id)];
ClientPtr ag_leader = XagLeader (win_owner);
#endif
if ((!pWin->overrideRedirect) && if ((!pWin->overrideRedirect) &&
(RedirectSend(pParent) (RedirectSend(pParent)
#ifdef XAPPGROUP
|| (win_owner->appgroup && ag_leader &&
XagIsControlledRoot (client, pParent))
#endif
)) ))
{ {
memset(&event, 0, sizeof(xEvent)); memset(&event, 0, sizeof(xEvent));
event.u.u.type = MapRequest; event.u.u.type = MapRequest;
event.u.mapRequest.window = pWin->drawable.id; event.u.mapRequest.window = pWin->drawable.id;
#ifdef XAPPGROUP
/* make sure if the ag_leader maps the window it goes to the wm */
if (ag_leader && ag_leader != client &&
XagIsControlledRoot (client, pParent)) {
event.u.mapRequest.parent = XagId (win_owner);
(void) TryClientEvents (ag_leader, &event, 1,
NoEventMask, NoEventMask, NullGrab);
return Success;
}
#endif
event.u.mapRequest.parent = pParent->drawable.id; event.u.mapRequest.parent = pParent->drawable.id;
if (MaybeDeliverEventsToClient(pParent, &event, 1, if (MaybeDeliverEventsToClient(pParent, &event, 1,
......
...@@ -143,9 +143,6 @@ typedef struct _Client { ...@@ -143,9 +143,6 @@ typedef struct _Client {
Mask /*access_mode*/, Mask /*access_mode*/,
void * /*resourceval*/); void * /*resourceval*/);
#endif #endif
#ifdef XAPPGROUP
struct _AppGroupRec* appgroup;
#endif
struct _FontResolution * (*fontResFunc) ( /* no need for font.h */ struct _FontResolution * (*fontResFunc) ( /* no need for font.h */
ClientPtr /* pClient */, ClientPtr /* pClient */,
int * /* num */); int * /* num */);
......
...@@ -133,10 +133,6 @@ extern Bool noXcupExtension; ...@@ -133,10 +133,6 @@ extern Bool noXcupExtension;
extern Bool noResExtension; extern Bool noResExtension;
#endif #endif
#ifdef XAPPGROUP
extern Bool noXagExtension;
#endif
#ifdef XCMISC #ifdef XCMISC
extern Bool noXCMiscExtension; extern Bool noXCMiscExtension;
#endif #endif
......
...@@ -138,9 +138,6 @@ extern Bool noXcupExtension; ...@@ -138,9 +138,6 @@ extern Bool noXcupExtension;
#ifdef RES #ifdef RES
extern Bool noResExtension; extern Bool noResExtension;
#endif #endif
#ifdef XAPPGROUP
extern Bool noXagExtension;
#endif
#ifdef XCMISC #ifdef XCMISC
extern Bool noXCMiscExtension; extern Bool noXCMiscExtension;
#endif #endif
...@@ -204,10 +201,6 @@ typedef void (*InitExtension)(INITARGS); ...@@ -204,10 +201,6 @@ typedef void (*InitExtension)(INITARGS);
#define _XLBX_SERVER_ #define _XLBX_SERVER_
#include <nx-X11/extensions/lbxstr.h> #include <nx-X11/extensions/lbxstr.h>
#endif #endif
#ifdef XAPPGROUP
#define _XAG_SERVER_
#include <nx-X11/extensions/Xagstr.h>
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
#define _SECURITY_SERVER #define _SECURITY_SERVER
#include <nx-X11/extensions/securstr.h> #include <nx-X11/extensions/securstr.h>
...@@ -284,9 +277,6 @@ extern void LbxExtensionInit(INITARGS); ...@@ -284,9 +277,6 @@ extern void LbxExtensionInit(INITARGS);
#ifdef DBE #ifdef DBE
extern void DbeExtensionInit(INITARGS); extern void DbeExtensionInit(INITARGS);
#endif #endif
#ifdef XAPPGROUP
extern void XagExtensionInit(INITARGS);
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
extern void SecurityExtensionInit(INITARGS); extern void SecurityExtensionInit(INITARGS);
#endif #endif
...@@ -425,9 +415,6 @@ static ExtensionToggle ExtensionToggleList[] = ...@@ -425,9 +415,6 @@ static ExtensionToggle ExtensionToggleList[] =
#ifdef RES #ifdef RES
{ "X-Resource", &noResExtension }, { "X-Resource", &noResExtension },
#endif #endif
#ifdef XAPPGROUP
{ "XC-APPGROUP", &noXagExtension },
#endif
#ifdef XCMISC #ifdef XCMISC
{ "XC-MISC", &noXCMiscExtension }, { "XC-MISC", &noXCMiscExtension },
#endif #endif
...@@ -566,9 +553,6 @@ InitExtensions(argc, argv) ...@@ -566,9 +553,6 @@ InitExtensions(argc, argv)
#ifdef DBE #ifdef DBE
if (!noDbeExtension) DbeExtensionInit(); if (!noDbeExtension) DbeExtensionInit();
#endif #endif
#ifdef XAPPGROUP
if (!noXagExtension) XagExtensionInit();
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
if (!noSecurityExtension) SecurityExtensionInit(); if (!noSecurityExtension) SecurityExtensionInit();
#endif #endif
...@@ -669,9 +653,6 @@ static ExtensionModule staticExtensions[] = { ...@@ -669,9 +653,6 @@ static ExtensionModule staticExtensions[] = {
#ifdef LBX #ifdef LBX
{ LbxExtensionInit, LBXNAME, &noLbxExtension, NULL, NULL }, { LbxExtensionInit, LBXNAME, &noLbxExtension, NULL, NULL },
#endif #endif
#ifdef XAPPGROUP
{ XagExtensionInit, XAGNAME, &noXagExtension, NULL, NULL },
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
{ SecurityExtensionInit, SECURITY_EXTENSION_NAME, &noSecurityExtension, NULL, NULL }, { SecurityExtensionInit, SECURITY_EXTENSION_NAME, &noSecurityExtension, NULL, NULL },
#endif #endif
......
...@@ -147,9 +147,6 @@ extern __const__ int _nfiles; ...@@ -147,9 +147,6 @@ extern __const__ int _nfiles;
#include <nx-X11/Xpoll.h> #include <nx-X11/Xpoll.h>
#include "opaque.h" #include "opaque.h"
#include "dixstruct.h" #include "dixstruct.h"
#ifdef XAPPGROUP
#include <nx-X11/extensions/Xagsrv.h>
#endif
#ifdef XCSECURITY #ifdef XCSECURITY
#define _SECURITY_SERVER #define _SECURITY_SERVER
#include <nx-X11/extensions/security.h> #include <nx-X11/extensions/security.h>
...@@ -814,10 +811,6 @@ ClientAuthorized(ClientPtr client, ...@@ -814,10 +811,6 @@ ClientAuthorized(ClientPtr client,
/* indicate to Xdmcp protocol that we've opened new client */ /* indicate to Xdmcp protocol that we've opened new client */
XdmcpOpenDisplay(priv->fd); XdmcpOpenDisplay(priv->fd);
#endif /* XDMCP */ #endif /* XDMCP */
#ifdef XAPPGROUP
if (ClientStateCallback)
XagCallClientStateChange (client);
#endif
/* At this point, if the client is authorized to change the access control /* At this point, if the client is authorized to change the access control
* list, we should getpeername() information, and add the client to * list, we should getpeername() information, and add the client to
* the selfhosts list. It's not really the host machine, but the * the selfhosts list. It's not really the host machine, but the
......
...@@ -213,9 +213,6 @@ Bool noXcupExtension = FALSE; ...@@ -213,9 +213,6 @@ Bool noXcupExtension = FALSE;
#ifdef RES #ifdef RES
Bool noResExtension = FALSE; Bool noResExtension = FALSE;
#endif #endif
#ifdef XAPPGROUP
Bool noXagExtension = FALSE;
#endif
#ifdef XCMISC #ifdef XCMISC
Bool noXCMiscExtension = FALSE; Bool noXCMiscExtension = FALSE;
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment