Update cursor when workspace focus changes

This commit is contained in:
emersion 2018-04-21 12:46:48 +01:00
parent 8e32c4a1fb
commit 33ed279494
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
2 changed files with 8 additions and 3 deletions

View file

@ -564,6 +564,12 @@ void seat_set_focus_warp(struct sway_seat *seat,
view_set_activated(view, false);
}
if (last_workspace && last_workspace != new_workspace) {
struct timespec now;
clock_gettime(CLOCK_MONOTONIC, &now);
cursor_send_pointer_motion(seat->cursor, now.tv_nsec / 1000);
}
seat->has_focus = (container != NULL);
update_debug_tree();