mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00:00
wayland: Tear down seat too when shutting down
The functionality was mostly there, but not hooked up to anything. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1822>
This commit is contained in:
parent
9827687ca1
commit
1a43312b96
@ -273,9 +273,13 @@ meta_wayland_seat_free (MetaWaylandSeat *seat)
|
||||
g_signal_handlers_disconnect_by_data (clutter_seat, seat);
|
||||
meta_wayland_seat_set_capabilities (seat, 0);
|
||||
|
||||
meta_wayland_pointer_disable (seat->pointer);
|
||||
g_object_unref (seat->pointer);
|
||||
meta_wayland_keyboard_disable (seat->keyboard);
|
||||
g_object_unref (seat->keyboard);
|
||||
meta_wayland_touch_disable (seat->touch);
|
||||
g_object_unref (seat->touch);
|
||||
|
||||
meta_wayland_gtk_text_input_destroy (seat->gtk_text_input);
|
||||
meta_wayland_text_input_destroy (seat->text_input);
|
||||
|
||||
|
@ -595,6 +595,8 @@ meta_wayland_finalize (void)
|
||||
if (compositor->wayland_display)
|
||||
wl_display_destroy_clients (compositor->wayland_display);
|
||||
|
||||
meta_wayland_seat_free (compositor->seat);
|
||||
|
||||
g_clear_pointer (&compositor->display_name, g_free);
|
||||
g_clear_pointer (&compositor->wayland_display, wl_display_destroy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user