mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
backend-x11: Reintroduce XInitThreads
It was removed in 3.34 as part of6ed5d2e2
. And we thought that was the only thread that might exist and use X11. But the top gnome-shell crasher in 3.36 seems to suggest otherwise. We don't know what or where the offending thread is, but since: 1. We used XInitThreads for years already prior to 3.34; and 2. Extensions or any change to mutter/gnome-shell could conceivably use threads to make X calls, directly or indirectly, it's probably a good idea to reintroduce XInitThreads. The failing assertion in libx11 is also accompanied by a strong hint: ``` fprintf(stderr, "[xcb] Most likely this is a multi-threaded client " \ "and XInitThreads has not been called\n"); ``` https://bugs.launchpad.net/bugs/1877075 Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1252 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1256 (cherry picked from commit1d5f9b6917
)
This commit is contained in:
parent
63bf5f1150
commit
b1df6d08a5
@ -855,6 +855,7 @@ meta_backend_x11_class_init (MetaBackendX11Class *klass)
|
|||||||
static void
|
static void
|
||||||
meta_backend_x11_init (MetaBackendX11 *x11)
|
meta_backend_x11_init (MetaBackendX11 *x11)
|
||||||
{
|
{
|
||||||
|
XInitThreads ();
|
||||||
}
|
}
|
||||||
|
|
||||||
Display *
|
Display *
|
||||||
|
Loading…
Reference in New Issue
Block a user