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:
Enrico Weigelt, metux IT consult
2025-10-15 13:19:01 +02:00
committed by Enrico Weigelt
parent 38eedc3de5
commit fc14d32a1a
9 changed files with 29 additions and 28 deletions

View File

@@ -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;