diff options
author | nicm <nicm> | 2020-04-07 13:38:30 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-07 13:38:30 +0000 |
commit | eff881b15aba52841c7b41ff6b5dca3cf6984077 (patch) | |
tree | 99bbfe01a26b508c364f6cbbc522dc21235a151b | |
parent | a2efdb21a84947fc8a84ea886d664bf428a0230a (diff) | |
download | rtmux-eff881b15aba52841c7b41ff6b5dca3cf6984077.tar.gz rtmux-eff881b15aba52841c7b41ff6b5dca3cf6984077.tar.bz2 rtmux-eff881b15aba52841c7b41ff6b5dca3cf6984077.zip |
Do not send mouse events if the program has not requested them.
-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 5e54d121..e9c595b4 100644 --- a/input-keys.c +++ b/input-keys.c @@ -271,6 +271,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. |