diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-11-27 10:10:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2024-11-27 10:10:21 +0000 |
commit | a20f13c24d932327e7499a42481aaeb33ac1e656 (patch) | |
tree | 6d2313be20e7ec3a7145675f98168b71e5328c83 | |
parent | 848d6c17ffa85ab4afd73b9350e8c46c912127c6 (diff) |
Do not stop drag on double or triple click, GitHub issue 4272.
-rw-r--r-- | usr.bin/tmux/server-client.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.bin/tmux/server-client.c b/usr.bin/tmux/server-client.c index 0217f0739d3..3fd0a2b28e4 100644 --- a/usr.bin/tmux/server-client.c +++ b/usr.bin/tmux/server-client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-client.c,v 1.421 2024/11/25 12:32:24 nicm Exp $ */ +/* $OpenBSD: server-client.c,v 1.422 2024/11/27 10:10:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -83,7 +83,7 @@ RB_GENERATE(client_windows, client_window, entry, server_client_window_cmp); u_int server_client_how_many(void) { - struct client *c; + struct client *c; u_int n; n = 0; @@ -884,7 +884,11 @@ have_event: m->wp = -1; /* Stop dragging if needed. */ - if (type != DRAG && type != WHEEL && c->tty.mouse_drag_flag != 0) { + if (type != DRAG && + type != WHEEL && + type != DOUBLE && + type != TRIPLE && + c->tty.mouse_drag_flag != 0) { if (c->tty.mouse_drag_release != NULL) c->tty.mouse_drag_release(c, m); @@ -2248,7 +2252,7 @@ server_client_is_bracket_paste(struct client *c, key_code key) } if (key == KEYC_PASTE_END) { - c->flags &= ~CLIENT_BRACKETPASTING; + c->flags &= ~CLIENT_BRACKETPASTING; log_debug("%s: bracket paste off", c->name); return (0); } @@ -3725,7 +3729,7 @@ const char * server_client_get_flags(struct client *c) { static char s[256]; - char tmp[32]; + char tmp[32]; *s = '\0'; if (c->flags & CLIENT_ATTACHED) |