mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
backend/wayland: reset active pointer on destroy
This commit is contained in:
parent
ec2af17674
commit
bc4350c976
1 changed files with 3 additions and 0 deletions
|
@ -404,6 +404,9 @@ static void destroy_pointer(struct wlr_wl_pointer *pointer) {
|
||||||
if (pointer->output->cursor.pointer == pointer) {
|
if (pointer->output->cursor.pointer == pointer) {
|
||||||
pointer->output->cursor.pointer = NULL;
|
pointer->output->cursor.pointer = NULL;
|
||||||
}
|
}
|
||||||
|
if (pointer->seat->active_pointer == pointer) {
|
||||||
|
pointer->seat->active_pointer = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
wlr_pointer_finish(&pointer->wlr_pointer);
|
wlr_pointer_finish(&pointer->wlr_pointer);
|
||||||
wl_list_remove(&pointer->output_destroy.link);
|
wl_list_remove(&pointer->output_destroy.link);
|
||||||
|
|
Loading…
Reference in a new issue