summaryrefslogtreecommitdiff
path: root/src/terminal-screen.c
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2020-06-20 20:18:10 +0000
committerRobert Antoni Buj Gelonch <[email protected]>2020-06-20 15:00:59 +0200
commit846ee3941d39c50f6c3baf1cf6985a8bf808c445 (patch)
tree59d6cdd3c7924401504e11e9478759c595a68a93 /src/terminal-screen.c
parentb6d807fd63fbaa6d5ba6e1b277fde6ae959eb156 (diff)
downloadmate-terminal-846ee3941d39c50f6c3baf1cf6985a8bf808c445.tar.bz2
mate-terminal-846ee3941d39c50f6c3baf1cf6985a8bf808c445.tar.xz
Compile code only when GDK supports X11
Diffstat (limited to 'src/terminal-screen.c')
-rw-r--r--src/terminal-screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 002585f..ba30e39 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -1445,9 +1445,11 @@ get_child_environment (TerminalScreen *screen,
g_hash_table_replace (env_table, g_strdup ("TERM"), g_strdup ("xterm-256color")); /* FIXME configurable later? */
/* FIXME: moving the tab between windows, or the window between displays will make the next two invalid... */
+#ifdef GDK_WINDOWING_X11
if (GDK_IS_X11_DISPLAY (display)) {
g_hash_table_replace (env_table, g_strdup ("WINDOWID"), g_strdup_printf ("%ld", GDK_WINDOW_XID (gtk_widget_get_window (window))));
}
+#endif
g_hash_table_replace (env_table, g_strdup ("DISPLAY"), g_strdup (gdk_display_get_name (display)));
g_settings_schema_source_list_schemas (g_settings_schema_source_get_default (), TRUE, &list_schemas, NULL);