aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-08-23 12:59:59 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-08-23 12:59:59 +0200
commit435485d145ea0aac1761aa99861067eb9de6ff25 (patch)
tree96c14a3ade4ee1e2753782861051d9d4ea4ba488
parentd876bbfcd393490c2632093cbfee0a4c477bbc6b (diff)
downloadnncmpp-435485d145ea0aac1761aa99861067eb9de6ff25.tar.gz
nncmpp-435485d145ea0aac1761aa99861067eb9de6ff25.tar.xz
nncmpp-435485d145ea0aac1761aa99861067eb9de6ff25.zip
X11: remark that triple clicks are mishandled
-rw-r--r--nncmpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nncmpp.c b/nncmpp.c
index d4b58fd..8d0d74c 100644
--- a/nncmpp.c
+++ b/nncmpp.c
@@ -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;