diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 17:03:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-04 18:47:48 -0400 |
commit | b7e779491232b825f6edc0b199e7564e93f1e332 (patch) | |
tree | 00457213fa57ec07692bb093392a83203e0e9960 /sway/input/cursor.c | |
parent | Add input inhibitor to input manager (diff) | |
download | sway-b7e779491232b825f6edc0b199e7564e93f1e332.tar.gz sway-b7e779491232b825f6edc0b199e7564e93f1e332.tar.zst sway-b7e779491232b825f6edc0b199e7564e93f1e332.zip |
Implement input-inhibit in sway, swaylock
Diffstat (limited to 'sway/input/cursor.c')
-rw-r--r-- | sway/input/cursor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 9229e92d..c56445eb 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, | |||
146 | 146 | ||
147 | // send pointer enter/leave | 147 | // send pointer enter/leave |
148 | if (surface != NULL) { | 148 | if (surface != NULL) { |
149 | wlr_seat_pointer_notify_enter(seat, surface, sx, sy); | 149 | if (seat_allow_input(cursor->seat, surface)) { |
150 | wlr_seat_pointer_notify_motion(seat, time, sx, sy); | 150 | wlr_seat_pointer_notify_enter(seat, surface, sx, sy); |
151 | wlr_seat_pointer_notify_motion(seat, time, sx, sy); | ||
152 | } | ||
151 | } else { | 153 | } else { |
152 | wlr_seat_pointer_clear_focus(seat); | 154 | wlr_seat_pointer_clear_focus(seat); |
153 | } | 155 | } |