diff options
author | 2023-07-29 01:16:37 +0800 | |
---|---|---|
committer | 2023-07-31 21:00:20 +0200 | |
commit | eebbecc7801ea520dd5644b08e884fbe27c2eeda (patch) | |
tree | 0bd6dec955ad358018c722443129c0b081324aa2 | |
parent | output: drop current_mode (diff) | |
download | sway-eebbecc7801ea520dd5644b08e884fbe27c2eeda.tar.gz sway-eebbecc7801ea520dd5644b08e884fbe27c2eeda.tar.zst sway-eebbecc7801ea520dd5644b08e884fbe27c2eeda.zip |
Rebase all cursors in handle_surface_map
Fix swaylock showing transient cursor after locked.
-rw-r--r-- | sway/lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/lock.c b/sway/lock.c index 53456172..70ac3969 100644 --- a/sway/lock.c +++ b/sway/lock.c | |||
@@ -1,6 +1,7 @@ | |||
1 | #define _POSIX_C_SOURCE 200809L | 1 | #define _POSIX_C_SOURCE 200809L |
2 | #include <assert.h> | 2 | #include <assert.h> |
3 | #include "log.h" | 3 | #include "log.h" |
4 | #include "sway/input/cursor.h" | ||
4 | #include "sway/input/keyboard.h" | 5 | #include "sway/input/keyboard.h" |
5 | #include "sway/input/seat.h" | 6 | #include "sway/input/seat.h" |
6 | #include "sway/output.h" | 7 | #include "sway/output.h" |
@@ -32,6 +33,7 @@ static void handle_surface_map(struct wl_listener *listener, void *data) { | |||
32 | if (server.session_lock.focused == NULL) { | 33 | if (server.session_lock.focused == NULL) { |
33 | set_lock_focused_surface(surf->surface); | 34 | set_lock_focused_surface(surf->surface); |
34 | } | 35 | } |
36 | cursor_rebase_all(); | ||
35 | surface_enter_output(surf->surface, surf->output); | 37 | surface_enter_output(surf->surface, surf->output); |
36 | output_damage_whole(surf->output); | 38 | output_damage_whole(surf->output); |
37 | } | 39 | } |