mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-17 19:42:21 +00:00
xace: add hooks + new access codes: XFixes extension.
Required a new name argument to the selection access hook to handle XFixesSelectSelectionInput.
This commit is contained in:
parent
47ab4d648b
commit
cda92bbf12
7 changed files with 87 additions and 47 deletions
|
|
@ -25,6 +25,7 @@
|
|||
#endif
|
||||
|
||||
#include "xfixesint.h"
|
||||
#include "xace.h"
|
||||
|
||||
static RESTYPE SelectionClientType, SelectionWindowType;
|
||||
static Bool SelectionCallbackRegistered = FALSE;
|
||||
|
|
@ -131,8 +132,14 @@ XFixesSelectSelectionInput (ClientPtr pClient,
|
|||
WindowPtr pWindow,
|
||||
CARD32 eventMask)
|
||||
{
|
||||
int rc;
|
||||
SelectionEventPtr *prev, e;
|
||||
|
||||
rc = XaceHook(XACE_SELECTION_ACCESS, pClient, selection, NULL,
|
||||
DixGetAttrAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
for (prev = &selectionEvents; (e = *prev); prev = &e->next)
|
||||
{
|
||||
if (e->selection == selection &&
|
||||
|
|
@ -196,7 +203,7 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
|
|||
int rc;
|
||||
|
||||
REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq);
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
|
||||
rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
if (stuff->eventMask & ~SelectionAllEvents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue