[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:
Bill Currie 2021-11-23 23:21:43 +09:00
parent 28b80d8bf8
commit 719525a4a1

View file

@ -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],