aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz BuczyƄski <56112903+tomekb234@users.noreply.github.com>2025-06-21 00:07:02 +0200
committerSimon Ser <contact@emersion.fr>2025-08-03 15:01:21 +0200
commit87fbcf0574260c4f307627e4e1cf3f71eeb48a31 (patch)
tree34c1f4dc9c6e800a7770aef16eb8918bc5c13b99
parent357d341f8fd68cd6902ea029a46baf5ce3411336 (diff)
Add cursor->hidden check to handle_rebase
Fixes #6245
-rw-r--r--sway/input/seatop_default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seatop_default.c b/sway/input/seatop_default.c
index 19645b4c..df8232af 100644
--- a/sway/input/seatop_default.c
+++ b/sway/input/seatop_default.c
@@ -1111,7 +1111,7 @@ static void handle_rebase(struct sway_seat *seat, uint32_t time_msec) {
cursor->cursor->x, cursor->cursor->y, &surface, &sx, &sy);
if (surface) {
- if (seat_is_input_allowed(seat, surface)) {
+ if (seat_is_input_allowed(seat, surface) && !cursor->hidden) {
wlr_seat_pointer_notify_enter(seat->wlr_seat, surface, sx, sy);
wlr_seat_pointer_notify_motion(seat->wlr_seat, time_msec, sx, sy);
}