summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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