mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dix: replace XACE_SCREEN_ACCESS by direct callback
Replace complicated xace hook by simple and cheap callback. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
38eedc3de5
commit
fc14d32a1a
@@ -812,7 +812,7 @@ ProcXFixesHideCursor(ClientPtr client)
|
||||
* This is the first time this client has hid the cursor
|
||||
* for this screen.
|
||||
*/
|
||||
ret = XaceHookScreenAccess(client, pWin->drawable.pScreen, DixHideAccess);
|
||||
ret = dixCallScreenAccessCallback(client, pWin->drawable.pScreen, DixHideAccess);
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
|
||||
@@ -860,7 +860,7 @@ ProcXFixesShowCursor(ClientPtr client)
|
||||
return BadMatch;
|
||||
}
|
||||
|
||||
rc = XaceHookScreenAccess(client, pWin->drawable.pScreen, DixShowAccess);
|
||||
rc = dixCallScreenAccessCallback(client, pWin->drawable.pScreen, DixShowAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user