dix: Fix builds with meson -Dxace=false -Dwerror=true

CI meson-disable-options builds were failing with:
../dix/events.c: In function ‘CoreEnterLeaveEvent’:
../dix/events.c:4723:19: error: unused variable ‘client’
 [-Werror=unused-variable]
 4723 |         ClientPtr client = grab ? rClient(grab) : wClient(pWin);
      |                   ^~~~~~
../dix/events.c: In function ‘CoreFocusEvent’:
../dix/events.c:4834:19: error: unused variable ‘client’
 [-Werror=unused-variable]
 4834 |         ClientPtr client = wClient(pWin);
      |                   ^~~~~~

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
(cherry picked from commit 6611caf828)
(cherry picked from commit 878d73e312)

Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2151>
This commit is contained in:
Alan Coopersmith 2025-08-19 18:52:16 -07:00 committed by Marge Bot
parent 3237f10a1e
commit caec464d67

View file

@ -4735,7 +4735,9 @@ CoreEnterLeaveEvent(DeviceIntPtr mouse,
xKeymapEvent ke = {
.type = KeymapNotify
};
#ifdef XACE
ClientPtr client = grab ? rClient(grab) : wClient(pWin);
#endif
int rc;
rc = XaceHook(XACE_DEVICE_ACCESS, client, keybd, DixReadAccess);
@ -4846,7 +4848,9 @@ CoreFocusEvent(DeviceIntPtr dev, int type, int mode, int detail, WindowPtr pWin)
xKeymapEvent ke = {
.type = KeymapNotify
};
#ifdef XACE
ClientPtr client = wClient(pWin);
#endif
int rc;
rc = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixReadAccess);