[gnome-settings-daemon/wip/carlosg/xwayland-startup-side-channel: 2/4] 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: 2/4] common: Replace DISPLAY with setup-only side channel display
- Date: Sat, 29 Feb 2020 21:03:24 +0000 (UTC)
commit 6ac271578907cf20a01cbe7e774de1c8d36e0227
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]