From b75ce4314d8ed43d9d9df6f36b62a6a8b2fcde25 Mon Sep 17 00:00:00 2001 From: William Wold Date: Mon, 11 Feb 2019 15:21:41 -0500 Subject: Wayland support for panel-run-dialog.c --- mate-panel/panel-run-dialog.c | 12 +++++++++--- 1 file 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; -- cgit v1.2.1