summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2023-07-29 01:16:37 +0800
committerFurkan Sahin <furkan-dev@proton.me>2023-07-29 01:16:37 +0800
commit9a99d8489bfd3ced3cfb4bb842b75393cc59b4a7 (patch)
tree0bd6dec955ad358018c722443129c0b081324aa2
parent973aa9fe28b3f8ac0261045a145c3c589111214c (diff)
Rebase all cursors in handle_surface_map
Fix swaylock showing transient cursor after locked.
-rw-r--r--sway/lock.c2
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 @@
#define _POSIX_C_SOURCE 200809L
#include <assert.h>
#include "log.h"
+#include "sway/input/cursor.h"
#include "sway/input/keyboard.h"
#include "sway/input/seat.h"
#include "sway/output.h"
@@ -32,6 +33,7 @@ static void handle_surface_map(struct wl_listener *listener, void *data) {
if (server.session_lock.focused == NULL) {
set_lock_focused_surface(surf->surface);
}
+ cursor_rebase_all();
surface_enter_output(surf->surface, surf->output);
output_damage_whole(surf->output);
}