diff options
author | Tony Crisci <[email protected]> | 2018-04-04 22:36:09 -0400 |
---|---|---|
committer | Tony Crisci <[email protected]> | 2018-04-04 22:36:09 -0400 |
commit | 65f254f3fbc83d006d4ec29170ec8a8695345d6c (patch) | |
tree | 3044fb62120ca23499d31275076af50db09a9850 /sway/input/cursor.c | |
parent | deda37469ad4e21ad86b7c83c7c8a966301b9d5e (diff) | |
parent | 21aedf15052df4e7f8ee72922fa0e214d690facc (diff) |
Merge branch 'wlroots' into fix-focus-inactive
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..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); } |