mutter/src
Daniel van Vugt b1df6d08a5 backend-x11: Reintroduce XInitThreads
It was removed in 3.34 as part of 6ed5d2e2. 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 commit 1d5f9b6917)
2020-05-15 12:49:12 +02:00
..
backends backend-x11: Reintroduce XInitThreads 2020-05-15 12:49:12 +02:00
compositor compositor: Only include meta-window-actor-wayland.h when building with wayland 2020-04-27 16:05:45 +02:00
core keybindings: Mask out the reserved modifiers mask 2020-04-27 18:28:19 +02:00
meta Add MetaGravity and replace X11 equivalent with it 2020-02-29 21:01:50 +00:00
tests monitor-unit-tests: Ensure configuration is preserved in laptop with closed lid 2020-04-16 16:09:54 +00:00
ui frame: Pass the frame area for get_mask() 2020-01-29 10:44:50 +00:00
wayland wayland: Rely on MetaSelection::owner-changed for .selection event emission 2020-04-19 21:51:33 +02:00
x11 x11: Allow X11 clients to clear the selection 2020-04-22 01:20:11 +02:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build backends: Add MetaInputDevice derivable class 2020-03-24 18:07:31 +00:00
meta-marshal.list cursor-tracker: Use our own marshal for cursor-moved 2019-07-31 09:34:17 +00:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml fixed typo 2018-07-24 13:16:36 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml Fix typo in RemoteDesktop dbus api 2019-05-22 16:21:57 +02:00
org.gnome.Mutter.ScreenCast.xml screen-cast-session: Add 'disable-animations' property 2020-02-20 10:40:42 +00:00