aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/input.c b/input.c
index 20c1381c..160c78a7 100644
--- a/input.c
+++ b/input.c
@@ -1589,13 +1589,15 @@ wl_pointer_button(void *data, struct wl_pointer *wl_pointer,
}
}
- if (!term_mouse_grabbed(term, seat) &&
- cursor_is_on_grid)
- {
- term_mouse_down(
- term, button, seat->mouse.row, seat->mouse.col,
- seat->kbd.shift, seat->kbd.alt, seat->kbd.ctrl);
- }
+ }
+
+ if (!seat->mouse.consumed &&
+ !term_mouse_grabbed(term, seat) &&
+ cursor_is_on_grid)
+ {
+ term_mouse_down(
+ term, button, seat->mouse.row, seat->mouse.col,
+ seat->kbd.shift, seat->kbd.alt, seat->kbd.ctrl);
}
break;
}