aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-04-21 12:46:48 +0100
committerLibravatar emersion <contact@emersion.fr>2018-04-21 12:46:48 +0100
commit33ed279494e7f95d74d494523afe8949091da8cd (patch)
tree9fae75ffb8943c72eabb2f17ea96b4ac6826c6bb /sway/input/seat.c
parentMerge pull request #1830 from bpinto/swaylock/install-pam-module (diff)
downloadsway-33ed279494e7f95d74d494523afe8949091da8cd.tar.gz
sway-33ed279494e7f95d74d494523afe8949091da8cd.tar.zst
sway-33ed279494e7f95d74d494523afe8949091da8cd.zip
Update cursor when workspace focus changes
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 8bba7d8f..631a273f 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -564,6 +564,12 @@ void seat_set_focus_warp(struct sway_seat *seat,
564 view_set_activated(view, false); 564 view_set_activated(view, false);
565 } 565 }
566 566
567 if (last_workspace && last_workspace != new_workspace) {
568 struct timespec now;
569 clock_gettime(CLOCK_MONOTONIC, &now);
570 cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000);
571 }
572
567 seat->has_focus = (container != NULL); 573 seat->has_focus = (container != NULL);
568 574
569 update_debug_tree(); 575 update_debug_tree();