diff options
author | Thomas Adam <thomas@xteddy.org> | 2020-04-07 16:01:29 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2020-04-07 16:01:29 +0100 |
commit | 6a2f32b4fdb5bdea21594f1305b4c96e9e1bf46d (patch) | |
tree | be3b0e9dd882ab21414cb79992e41ca6f1bc521e /input-keys.c | |
parent | 8fa0b0cd2677efbabc259db09ae736febe301272 (diff) | |
parent | 1c8f7c1f7afcc7d2a9fcef8d38e6c0e4451da659 (diff) | |
download | rtmux-6a2f32b4fdb5bdea21594f1305b4c96e9e1bf46d.tar.gz rtmux-6a2f32b4fdb5bdea21594f1305b4c96e9e1bf46d.tar.bz2 rtmux-6a2f32b4fdb5bdea21594f1305b4c96e9e1bf46d.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/input-keys.c b/input-keys.c index fa578912..04ecb264 100644 --- a/input-keys.c +++ b/input-keys.c @@ -270,6 +270,8 @@ input_key_get_mouse(struct screen *s, struct mouse_event *m, u_int x, u_int y, /* If this pane is not in button or all mode, discard motion events. */ if (MOUSE_DRAG(m->b) && (s->mode & MOTION_MOUSE_MODES) == 0) return (0); + if ((s->mode & ALL_MOUSE_MODES) == 0) + return (0); /* * If this event is a release event and not in all mode, discard it. |