diff options
Diffstat (limited to 'input-keys.c')
-rw-r--r-- | input-keys.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/input-keys.c b/input-keys.c index 34710dac..f0a38c09 100644 --- a/input-keys.c +++ b/input-keys.c @@ -18,7 +18,6 @@ #include <sys/types.h> -#include <stdint.h> #include <stdlib.h> #include <string.h> @@ -248,10 +247,10 @@ input_key_mouse(struct window_pane *wp, struct mouse_event *m) if ((mode & ALL_MOUSE_MODES) == 0) return; - if (!window_pane_visible(wp)) - return; if (cmd_mouse_at(wp, m, &x, &y, 0) != 0) return; + if (!window_pane_visible(wp)) + return; /* If this pane is not in button or all mode, discard motion events. */ if (MOUSE_DRAG(m->b) && |