summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-02-11 15:21:41 -0500
committerraveit65 <[email protected]>2019-03-10 15:11:45 +0100
commitb75ce4314d8ed43d9d9df6f36b62a6a8b2fcde25 (patch)
tree0021e1d99ec1437df3deaa3a8e0c7862d694fe7a
parent3870e8a3f6b4c3e9c1d4646e933365a586d375db (diff)
downloadmate-panel-b75ce4314d8ed43d9d9df6f36b62a6a8b2fcde25.tar.bz2
mate-panel-b75ce4314d8ed43d9d9df6f36b62a6a8b2fcde25.tar.xz
Wayland support for panel-run-dialog.c
-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;