mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
seat: simplify data source destroy
This commit is contained in:
parent
c20d413f8a
commit
9d6cb85b2d
1 changed files with 2 additions and 8 deletions
|
@ -157,14 +157,8 @@ void wlr_seat_destroy(struct wlr_seat *seat) {
|
||||||
|
|
||||||
wl_list_remove(&seat->display_destroy.link);
|
wl_list_remove(&seat->display_destroy.link);
|
||||||
|
|
||||||
if (seat->selection_source) {
|
|
||||||
wl_list_remove(&seat->selection_source_destroy.link);
|
|
||||||
wlr_data_source_destroy(seat->selection_source);
|
wlr_data_source_destroy(seat->selection_source);
|
||||||
seat->selection_source = NULL;
|
wlr_primary_selection_source_destroy(seat->primary_selection_source);
|
||||||
}
|
|
||||||
|
|
||||||
wlr_seat_set_primary_selection(seat, NULL,
|
|
||||||
wl_display_next_serial(seat->display));
|
|
||||||
|
|
||||||
struct wlr_seat_client *client, *tmp;
|
struct wlr_seat_client *client, *tmp;
|
||||||
wl_list_for_each_safe(client, tmp, &seat->clients, link) {
|
wl_list_for_each_safe(client, tmp, &seat->clients, link) {
|
||||||
|
|
Loading…
Reference in a new issue