diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-02-14 17:12:39 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2025-02-14 17:12:39 +0100 |
| commit | 27d991f046bdebb12bfd58f7c05a19f135979c29 (patch) | |
| tree | 4f713f5421fe55cfa619113b977ba6715dd72023 /libdecor/src/plugins/gtk | |
| parent | 4c64264e0cc6033bc89b2ed9190d17c3d8be2bd5 (diff) | |
Update bundled libdecor to last upstream version (21 jan 2025)
Diffstat (limited to 'libdecor/src/plugins/gtk')
| -rw-r--r-- | libdecor/src/plugins/gtk/libdecor-gtk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libdecor/src/plugins/gtk/libdecor-gtk.c b/libdecor/src/plugins/gtk/libdecor-gtk.c index 7ce38ddc6..813b764e3 100644 --- a/libdecor/src/plugins/gtk/libdecor-gtk.c +++ b/libdecor/src/plugins/gtk/libdecor-gtk.c @@ -2915,6 +2915,12 @@ libdecor_plugin_new(struct libdecor *context) struct libdecor_plugin_gtk *plugin_gtk; struct wl_display *wl_display; +#ifdef HAVE_GETTID + /* Only support running on the main thread. */ + if (getpid () != gettid ()) + return NULL; +#endif + plugin_gtk = zalloc(sizeof *plugin_gtk); libdecor_plugin_init(&plugin_gtk->plugin, context, |
