aboutsummaryrefslogtreecommitdiff
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-17 19:53:12 -0700
committerGitHub <noreply@github.com>2018-07-17 19:53:12 -0700
commitca695482ec43fa247fc565161768584ef9534fea (patch)
tree0ef66f10e1bb38fd3108680ccfa3830b06e61a93 /sway/input/seat.c
parent81e4bbf8b26a836b5f0fe83687658e854ca6a11e (diff)
parent03d49490ccff3c5c81bea73622c8616fa61eb3dd (diff)
Merge pull request #2292 from emersion/update-cursor-on-focus
Update cursor on focus change
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 12b1fab5..8ed4a3fe 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -738,7 +738,7 @@ void seat_set_focus_warp(struct sway_seat *seat,
}
}
- if (last_workspace && last_workspace != new_workspace) {
+ if (last_focus != NULL) {
cursor_send_pointer_motion(seat->cursor, 0, true);
}