X11: remark that triple clicks are mishandled

This commit is contained in:
Přemysl Eric Janouch 2022-08-23 12:59:59 +02:00
parent d876bbfcd3
commit 435485d145
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -5957,6 +5957,7 @@ on_x11_input_event (XEvent *ev)
app_process_mouse (TERMO_MOUSE_RELEASE, x, y, button, double_click);
// Prevent interpreting triple clicks as two double clicks.
// FIXME: This doesn't work: we skip ButtonPress, but use ButtonRelease.
last_button_event = (XEvent) {};
if (!double_click)
last_button_event = *ev;