summaryrefslogtreecommitdiffstats
path: root/server-client.c
diff options
context:
space:
mode:
authornicm <nicm>2020-10-30 08:55:56 +0000
committernicm <nicm>2020-10-30 08:55:56 +0000
commit649e5970e98b0073763f42a25dcab02aadea688f (patch)
tree9918f6fc4c7830ff919f9f2fbabdfc38bb16e76c /server-client.c
parenta868bacb46e3c900530bed47a1c6f85b0fbe701c (diff)
Add a -O flag to display-menu to change the mouse behaviour and not
close the menu when the mouse is released, from teo_paul1 at yahoo dot com.
Diffstat (limited to 'server-client.c')
-rw-r--r--server-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-client.c b/server-client.c
index 4c9706f7..3c2b54d5 100644
--- a/server-client.c
+++ b/server-client.c
@@ -1693,8 +1693,8 @@ server_client_reset_state(struct client *c)
* mode.
*/
if (options_get_number(oo, "mouse")) {
- mode &= ~ALL_MOUSE_MODES;
if (c->overlay_draw == NULL) {
+ mode &= ~ALL_MOUSE_MODES;
TAILQ_FOREACH(loop, &w->panes, entry) {
if (loop->screen->mode & MODE_MOUSE_ALL)
mode |= MODE_MOUSE_ALL;