aboutsummaryrefslogtreecommitdiff
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 8726a0b2..cdf76554 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -85,7 +85,8 @@ bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifiers
bool pointer_test(swayc_t *view, void *_origin) {
const struct wlc_origin *origin = _origin;
if (view->type == C_VIEW && origin->x >= view->x && origin->y >= view->y
- && origin->x < view->x + view->width && origin->y < view->y + view->height) {
+ && origin->x < view->x + view->width && origin->y < view->y + view->height
+ && view->visible) {
return true;
}
return false;