mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 13:37:22 +00:00
[client] x11: cosmetic, rename device
to raw
for raw events
This commit is contained in:
parent
07c13a9d43
commit
c667322f25
@ -322,8 +322,8 @@ static bool x11EventFilter(SDL_Event * event)
|
|||||||
if (!x11.focused)
|
if (!x11.focused)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
XIRawEvent *device = cookie->data;
|
XIRawEvent *raw = cookie->data;
|
||||||
app_handleKeyPress(device->detail - 8);
|
app_handleKeyPress(raw->detail - 8);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -332,8 +332,8 @@ static bool x11EventFilter(SDL_Event * event)
|
|||||||
if (!x11.focused)
|
if (!x11.focused)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
XIRawEvent *device = cookie->data;
|
XIRawEvent *raw = cookie->data;
|
||||||
app_handleKeyRelease(device->detail - 8);
|
app_handleKeyRelease(raw->detail - 8);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,9 +342,9 @@ static bool x11EventFilter(SDL_Event * event)
|
|||||||
if (!x11.focused || !x11.entered)
|
if (!x11.focused || !x11.entered)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
XIRawEvent *device = cookie->data;
|
XIRawEvent *raw = cookie->data;
|
||||||
app_handleButtonPress(
|
app_handleButtonPress(
|
||||||
device->detail > 5 ? device->detail - 2 : device->detail);
|
raw->detail > 5 ? raw->detail - 2 : raw->detail);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,9 +353,9 @@ static bool x11EventFilter(SDL_Event * event)
|
|||||||
if (!x11.focused || !x11.entered)
|
if (!x11.focused || !x11.entered)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
XIRawEvent *device = cookie->data;
|
XIRawEvent *raw = cookie->data;
|
||||||
app_handleButtonRelease(
|
app_handleButtonRelease(
|
||||||
device->detail > 5 ? device->detail - 2 : device->detail);
|
raw->detail > 5 ? raw->detail - 2 : raw->detail);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user