mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-03 03:24:39 +00:00
xace: typesafe hook function for XACE_SCREEN_ACCESS
he generic XaceHook() call isn't typesafe (und unnecessarily slow). Better add an explicit function, just like we already have for others. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1556>
This commit is contained in:
parent
47d6c3ad75
commit
51d8bcfc0d
5 changed files with 15 additions and 11 deletions
|
|
@ -880,8 +880,7 @@ ProcXFixesHideCursor(ClientPtr client)
|
|||
* This is the first time this client has hid the cursor
|
||||
* for this screen.
|
||||
*/
|
||||
ret = XaceHook(XACE_SCREEN_ACCESS, client, pWin->drawable.pScreen,
|
||||
DixHideAccess);
|
||||
ret = XaceHookScreenAccess(client, pWin->drawable.pScreen, DixHideAccess);
|
||||
if (ret != Success)
|
||||
return ret;
|
||||
|
||||
|
|
@ -938,8 +937,7 @@ ProcXFixesShowCursor(ClientPtr client)
|
|||
return BadMatch;
|
||||
}
|
||||
|
||||
rc = XaceHook(XACE_SCREEN_ACCESS, client, pWin->drawable.pScreen,
|
||||
DixShowAccess);
|
||||
rc = XaceHookScreenAccess(client, pWin->drawable.pScreen, DixShowAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue