[gnome-settings-daemon/wip/carlosg/xwayland-startup-side-channel: 24/26] common: Replace DISPLAY with setup-only side channel display
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/carlosg/xwayland-startup-side-channel: 24/26] common: Replace DISPLAY with setup-only side channel display
- Date: Sat, 29 Feb 2020 17:03:10 +0000 (UTC)
commit 17e36780d904f607f7fcb85878ea8924d12869bf
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Nov 15 11:30:14 2019 +0100
common: Replace DISPLAY with setup-only side channel display
If it exists and is available, this display should be used to let g-s-d
x11 services (i.e. gsd-xsettings) set up the X11 server before a Xwayland
client proceeds.
plugins/common/daemon-skeleton-gtk.h | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/plugins/common/daemon-skeleton-gtk.h b/plugins/common/daemon-skeleton-gtk.h
index 87bafb3d..f39fd5d6 100644
--- a/plugins/common/daemon-skeleton-gtk.h
+++ b/plugins/common/daemon-skeleton-gtk.h
@@ -222,6 +222,12 @@ main (int argc, char **argv)
set_empty_gtk_theme (TRUE);
#ifdef GDK_BACKEND
+ {
+ const gchar *setup_display = getenv ("GNOME_SETUP_DISPLAY");
+ if (setup_display)
+ g_setenv ("DISPLAY", setup_display, TRUE);
+ }
+
gdk_set_allowed_backends (GDK_BACKEND);
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]