mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: use 'rc' for return code in DeliverRawEvent
Reported-by: Walter Harms <wharms@bfs.de> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Cyril Brulebois <kibi@debian.org> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
@@ -2284,14 +2284,14 @@ DeliverRawEvent(RawDeviceEvent *ev, DeviceIntPtr device)
|
||||
{
|
||||
GrabPtr grab = device->deviceGrab.grab;
|
||||
xEvent *xi;
|
||||
int i;
|
||||
int i, rc;
|
||||
int filter;
|
||||
|
||||
i = EventToXI2((InternalEvent*)ev, (xEvent**)&xi);
|
||||
if (i != Success)
|
||||
rc = EventToXI2((InternalEvent*)ev, (xEvent**)&xi);
|
||||
if (rc != Success)
|
||||
{
|
||||
ErrorF("[Xi] %s: XI2 conversion failed in %s (%d)\n",
|
||||
__func__, device->name, i);
|
||||
__func__, device->name, rc);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user