summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-run-dialog.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/mate-panel/panel-run-dialog.c b/mate-panel/panel-run-dialog.c
index 5a0b55b7..5451b4d9 100644
--- a/mate-panel/panel-run-dialog.c
+++ b/mate-panel/panel-run-dialog.c
@@ -60,9 +60,12 @@
#include "panel-multiscreen.h"
#include "menu.h"
#include "panel-lockdown.h"
-#include "panel-xutils.h"
#include "panel-icon-names.h"
+#ifdef HAVE_X11
+#include "xstuff.h"
+#endif
+
typedef struct {
GtkWidget *run_dialog;
@@ -2000,8 +2003,11 @@ panel_run_dialog_new (GdkScreen *screen,
gtk_widget_grab_focus (dialog->combobox);
gtk_widget_realize (dialog->run_dialog);
- gdk_x11_window_set_user_time (gtk_widget_get_window (dialog->run_dialog),
- activate_time);
+#ifdef HAVE_X11
+ if (is_using_x11 ())
+ gdk_x11_window_set_user_time (gtk_widget_get_window (dialog->run_dialog),
+ activate_time);
+#endif
gtk_widget_show (dialog->run_dialog);
return dialog;