aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-04 20:16:35 -0400
committerGitHub <noreply@github.com>2018-04-04 20:16:35 -0400
commitf2153f3f28c8aa2e6738610abf09b2e2396d891a (patch)
tree4702abb406a59fb8588cbd2019741e99d40bcbfe /sway/input/cursor.c
parent3852a710ca62a76f4fd9c6ff9d28e7e5d5fcf78d (diff)
parent5d444b34f6af17894e2808c9d25948db625dabde (diff)
Merge pull request #1705 from swaywm/swaylock-layers
Port swaylock to layer shell
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r--sway/input/cursor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c
index 9229e92d..195ddce9 100644
--- a/sway/input/cursor.c
+++ b/sway/input/cursor.c
@@ -146,8 +146,10 @@ static void cursor_send_pointer_motion(struct sway_cursor *cursor,
// send pointer enter/leave
if (surface != NULL) {
- wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
- wlr_seat_pointer_notify_motion(seat, time, sx, sy);
+ if (seat_is_input_allowed(cursor->seat, surface)) {
+ wlr_seat_pointer_notify_enter(seat, surface, sx, sy);
+ wlr_seat_pointer_notify_motion(seat, time, sx, sy);
+ }
} else {
wlr_seat_pointer_clear_focus(seat);
}