summaryrefslogtreecommitdiff
path: root/mate-panel/panel-force-quit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-force-quit.c')
-rw-r--r--mate-panel/panel-force-quit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index 6603597b..82a67010 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -24,6 +24,10 @@
#include <config.h>
+#ifndef HAVE_X11
+#error file should only be built when HAVE_X11 is enabled
+#endif
+
#include "panel-force-quit.h"
#include <glib/gi18n.h>
@@ -335,6 +339,8 @@ panel_force_quit (GdkScreen *screen,
GdkDisplay *display;
GdkSeat *seat;
+ g_return_if_fail (GDK_IS_X11_DISPLAY (gdk_screen_get_display (screen)));
+
popup = display_popup_window (screen);
root = gdk_screen_get_root_window (screen);