mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-26 21:58:08 +01:00
Rebase all cursors in handle_surface_map
Fix swaylock showing transient cursor after locked.
This commit is contained in:
parent
f8ddd97e0e
commit
eebbecc780
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue