mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
backends/native: Close the input thread in all situations on dispose
In test situations we sometimes do not create a libinput context, so our check on dispose to see if we need closing the input thread is off if META_SEAT_NATIVE_FLAG_NO_LIBINPUT was provided. Check the input thread existing instead, since that is the thing we want to undo here. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3153>
This commit is contained in:
parent
c45a64be7a
commit
dc527ed510
@ -3055,7 +3055,7 @@ destroy_in_impl (GTask *task)
|
||||
void
|
||||
meta_seat_impl_destroy (MetaSeatImpl *seat_impl)
|
||||
{
|
||||
if (seat_impl->libinput)
|
||||
if (seat_impl->input_thread)
|
||||
{
|
||||
GTask *task;
|
||||
|
||||
@ -3065,6 +3065,7 @@ meta_seat_impl_destroy (MetaSeatImpl *seat_impl)
|
||||
g_object_unref (task);
|
||||
|
||||
g_thread_join (seat_impl->input_thread);
|
||||
seat_impl->input_thread = NULL;
|
||||
g_assert (!seat_impl->libinput);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user