summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index df7317a9..a6f2896f 100644
--- a/src/util.c
+++ b/src/util.c
@@ -417,8 +417,11 @@ zenity_util_show_dialog (GtkWidget *dialog)
{
gtk_widget_realize (dialog);
#ifdef GDK_WINDOWING_X11
- g_assert (gtk_widget_get_window(dialog));
- zenity_util_make_transient (gtk_widget_get_window(dialog));
+ if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
+ {
+ g_assert (gtk_widget_get_window(dialog));
+ zenity_util_make_transient (gtk_widget_get_window(dialog));
+ }
#endif
gtk_widget_show (dialog);
}
bgstack15