mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 22:55:58 +01:00
wlr-seat bug: dont set focus surface to null then clear focus
This commit is contained in:
parent
e903a69698
commit
b23dd6a6f8
1 changed files with 0 additions and 4 deletions
|
@ -408,7 +408,6 @@ static void pointer_surface_destroy_notify(struct wl_listener *listener,
|
||||||
listener, state, surface_destroy);
|
listener, state, surface_destroy);
|
||||||
wl_list_remove(&state->surface_destroy.link);
|
wl_list_remove(&state->surface_destroy.link);
|
||||||
wl_list_init(&state->surface_destroy.link);
|
wl_list_init(&state->surface_destroy.link);
|
||||||
state->focused_surface = NULL;
|
|
||||||
wlr_seat_pointer_clear_focus(state->seat);
|
wlr_seat_pointer_clear_focus(state->seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,7 +417,6 @@ static void pointer_resource_destroy_notify(struct wl_listener *listener,
|
||||||
listener, state, resource_destroy);
|
listener, state, resource_destroy);
|
||||||
wl_list_remove(&state->resource_destroy.link);
|
wl_list_remove(&state->resource_destroy.link);
|
||||||
wl_list_init(&state->resource_destroy.link);
|
wl_list_init(&state->resource_destroy.link);
|
||||||
state->focused_surface = NULL;
|
|
||||||
wlr_seat_pointer_clear_focus(state->seat);
|
wlr_seat_pointer_clear_focus(state->seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -674,7 +672,6 @@ static void keyboard_surface_destroy_notify(struct wl_listener *listener,
|
||||||
listener, state, surface_destroy);
|
listener, state, surface_destroy);
|
||||||
wl_list_remove(&state->surface_destroy.link);
|
wl_list_remove(&state->surface_destroy.link);
|
||||||
wl_list_init(&state->surface_destroy.link);
|
wl_list_init(&state->surface_destroy.link);
|
||||||
state->focused_surface = NULL;
|
|
||||||
wlr_seat_keyboard_clear_focus(state->seat);
|
wlr_seat_keyboard_clear_focus(state->seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -684,7 +681,6 @@ static void keyboard_resource_destroy_notify(struct wl_listener *listener,
|
||||||
listener, state, resource_destroy);
|
listener, state, resource_destroy);
|
||||||
wl_list_remove(&state->resource_destroy.link);
|
wl_list_remove(&state->resource_destroy.link);
|
||||||
wl_list_init(&state->resource_destroy.link);
|
wl_list_init(&state->resource_destroy.link);
|
||||||
state->focused_surface = NULL;
|
|
||||||
wlr_seat_keyboard_clear_focus(state->seat);
|
wlr_seat_keyboard_clear_focus(state->seat);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue