mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
237cdeef4c
We didn't tear down the libinput objects in the right thread when exiting, but did so after the input thread exited. We also tried to destroy the libinput devices after the libinput context was destroyed, which isn't allowed. Fix these two issues by tearing down the libinput objects in a input thread task that when done exits the input thread. This effectively "flushes" the input thread tasks while destroying the libinput objects just before the thread exits. While it might fine to tear down libinput objects in an arbitrary (main in this case) thread while making sure nothing pokes at it in parallel (e.g. the input thread is gone), libinput is by definition single threaded, and could theoretically make assumptions about this, and we shouldn't cause any possible surprises here, so make sure to destroy it all in the right thread. This fixes an abort() on exit caused by an assert about invalid object destruction in libinput. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1663> |
||
---|---|---|
.. | ||
backends | ||
compositor | ||
core | ||
meta | ||
tests | ||
ui | ||
wayland | ||
x11 | ||
libmutter.pc.in | ||
meson.build | ||
meta-private-enum-types.c.in | ||
meta-private-enum-types.h.in | ||
org.freedesktop.login1.xml | ||
org.gnome.Mutter.DisplayConfig.xml | ||
org.gnome.Mutter.IdleMonitor.xml | ||
org.gnome.Mutter.RemoteDesktop.xml | ||
org.gnome.Mutter.ScreenCast.xml |