Compile code only when GDK supports X11
parent
b6d807fd63
commit
846ee3941d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue