From 2945deba1d4a7dce4f6dd0c568297a1c537fdfb4 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Mon, 19 Mar 2007 17:09:10 -0400 Subject: [PATCH] xace: drop XACE_WINDOW_INIT hook, it has been superseded by ResourceStateCallback. --- Xext/xace.c | 8 -------- Xext/xace.h | 7 +++---- Xext/xacestr.h | 6 ------ dix/window.c | 4 ---- 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/Xext/xace.c b/Xext/xace.c index 6fc5c12ee..ee0f39c20 100644 --- a/Xext/xace.c +++ b/Xext/xace.c @@ -182,14 +182,6 @@ int XaceHook(int hook, ...) calldata = &rec; break; } - case XACE_WINDOW_INIT: { - XaceWindowRec rec = { - va_arg(ap, ClientPtr), - va_arg(ap, WindowPtr) - }; - calldata = &rec; - break; - } case XACE_AUDIT_BEGIN: { XaceAuditRec rec = { va_arg(ap, ClientPtr), diff --git a/Xext/xace.h b/Xext/xace.h index 7231b04bc..7360dae5b 100644 --- a/Xext/xace.h +++ b/Xext/xace.h @@ -54,10 +54,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #define XACE_DECLARE_EXT_SECURE 11 #define XACE_AUTH_AVAIL 12 #define XACE_KEY_AVAIL 13 -#define XACE_WINDOW_INIT 14 -#define XACE_AUDIT_BEGIN 15 -#define XACE_AUDIT_END 16 -#define XACE_NUM_HOOKS 17 +#define XACE_AUDIT_BEGIN 14 +#define XACE_AUDIT_END 15 +#define XACE_NUM_HOOKS 16 extern CallbackListPtr XaceHooks[XACE_NUM_HOOKS]; diff --git a/Xext/xacestr.h b/Xext/xacestr.h index 7114d066b..bd3088381 100644 --- a/Xext/xacestr.h +++ b/Xext/xacestr.h @@ -119,12 +119,6 @@ typedef struct { int count; } XaceKeyAvailRec; -/* XACE_WINDOW_INIT */ -typedef struct { - ClientPtr client; - WindowPtr pWin; -} XaceWindowRec; - /* XACE_AUDIT_BEGIN */ /* XACE_AUDIT_END */ typedef struct { diff --git a/dix/window.c b/dix/window.c index e33140dd4..02496f53e 100644 --- a/dix/window.c +++ b/dix/window.c @@ -529,8 +529,6 @@ InitRootWindow(WindowPtr pWin) /* We SHOULD check for an error value here XXX */ (*pScreen->ChangeWindowAttributes)(pWin, backFlag); - XaceHook(XACE_WINDOW_INIT, serverClient, pWin); - MapWindow(pWin, serverClient); } @@ -763,8 +761,6 @@ CreateWindow(Window wid, register WindowPtr pParent, int x, int y, unsigned w, REGION_NULL(pScreen, &pWin->winSize); REGION_NULL(pScreen, &pWin->borderSize); - XaceHook(XACE_WINDOW_INIT, client, pWin); - pHead = RealChildHead(pParent); if (pHead) {