mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 11:58:05 +02:00
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:
parent
3237f10a1e
commit
caec464d67
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue