mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-11 07:42:18 +00:00
[x11] Set backed mouse button state for raw presses
Fixes button press events being treated as button releases in the event handlers.
This commit is contained in:
parent
28b80d8bf8
commit
719525a4a1
1 changed files with 1 additions and 0 deletions
|
@ -968,6 +968,7 @@ xi_raw_button (void *event, int press)
|
|||
} else {
|
||||
x11_mouse.buttons &= ~(1 << button);
|
||||
}
|
||||
x11_mouse_buttons[button].state = press;
|
||||
if (!in_x11_send_mouse_event (press ? ie_mousedown : ie_mouseup)) {
|
||||
in_x11_send_button_event (x11_mouse_device.devid,
|
||||
&x11_mouse_buttons[button],
|
||||
|
|
Loading…
Reference in a new issue