Skip to content

Commit

Permalink
Rebase all cursors in handle_surface_map
Browse files Browse the repository at this point in the history
Fix swaylock showing transient cursor after locked.
  • Loading branch information
OkamiW authored and emersion committed Jul 31, 2023
1 parent f8ddd97 commit eebbecc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 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"
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit eebbecc

Please sign in to comment.