summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2019-02-11 16:19:44 -0500
committerraveit65 <[email protected]>2019-03-10 15:11:45 +0100
commitd9f3c3646006d5405d51f04d6b1d7d2889d366ab (patch)
treee82c6d148a7450e47109ec822e0c15e99ca5aa45
parentbe40cc6bee1f2a0cb3329077301460250cd303ae (diff)
downloadmate-panel-d9f3c3646006d5405d51f04d6b1d7d2889d366ab.tar.bz2
mate-panel-d9f3c3646006d5405d51f04d6b1d7d2889d366ab.tar.xz
Wayland support for panel-widget.c
-rw-r--r--mate-panel/panel-widget.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index 555308f5..23722387 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -11,7 +11,10 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+
+#ifdef HAVE_X11
#include <gtk/gtkx.h> /* for GTK_IS_SOCKET */
+#endif
#include <libpanel-util/panel-list.h>
@@ -189,7 +192,10 @@ add_all_move_bindings (PanelWidget *panel)
GDK_KEY_space, 0,
"end_move", 0);
+#ifdef HAVE_X11
focus_widget = gtk_window_get_focus (GTK_WINDOW (panel->toplevel));
+
+ // will always be false when not on X
if (GTK_IS_SOCKET (focus_widget)) {
/*
* If the focus widget is a GtkSocket, i.e. the
@@ -202,6 +208,7 @@ add_all_move_bindings (PanelWidget *panel)
gtk_widget_grab_focus (GTK_WIDGET (panel));
saved_focus_widget = focus_widget;
}
+#endif
}
static void