From c667322f251394ad4fee6c32764f3a9c47cf1e9f Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 19 Jan 2021 20:47:25 +1100 Subject: [PATCH] [client] x11: cosmetic, rename `device` to `raw` for raw events --- client/displayservers/X11/x11.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 6b891b6d..554d6ddc 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -322,8 +322,8 @@ static bool x11EventFilter(SDL_Event * event) if (!x11.focused) return true; - XIRawEvent *device = cookie->data; - app_handleKeyPress(device->detail - 8); + XIRawEvent *raw = cookie->data; + app_handleKeyPress(raw->detail - 8); return true; } @@ -332,8 +332,8 @@ static bool x11EventFilter(SDL_Event * event) if (!x11.focused) return true; - XIRawEvent *device = cookie->data; - app_handleKeyRelease(device->detail - 8); + XIRawEvent *raw = cookie->data; + app_handleKeyRelease(raw->detail - 8); return true; } @@ -342,9 +342,9 @@ static bool x11EventFilter(SDL_Event * event) if (!x11.focused || !x11.entered) return true; - XIRawEvent *device = cookie->data; + XIRawEvent *raw = cookie->data; app_handleButtonPress( - device->detail > 5 ? device->detail - 2 : device->detail); + raw->detail > 5 ? raw->detail - 2 : raw->detail); return true; } @@ -353,9 +353,9 @@ static bool x11EventFilter(SDL_Event * event) if (!x11.focused || !x11.entered) return true; - XIRawEvent *device = cookie->data; + XIRawEvent *raw = cookie->data; app_handleButtonRelease( - device->detail > 5 ? device->detail - 2 : device->detail); + raw->detail > 5 ? raw->detail - 2 : raw->detail); return true; }