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.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/mate-panel/panel-force-quit.c b/mate-panel/panel-force-quit.c
index 5a994fdc..ff6fdd12 100644
--- a/mate-panel/panel-force-quit.c
+++ b/mate-panel/panel-force-quit.c
@@ -196,14 +196,16 @@ kill_window_response (GtkDialog *dialog,
gpointer user_data)
{
if (response_id == GTK_RESPONSE_ACCEPT) {
- Display *display;
+ GdkDisplay *display;
+ Display *xdisplay;
Window window = (Window) user_data;
- display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (dialog)));
+ display = gtk_widget_get_display (GTK_WIDGET (dialog));
+ xdisplay = GDK_DISPLAY_XDISPLAY (display);
gdk_error_trap_push ();
- XKillClient (display, window);
- gdk_flush ();
+ XKillClient (xdisplay, window);
+ gdk_display_flush (display);
gdk_error_trap_pop_ignored ();
}
@@ -352,5 +354,5 @@ panel_force_quit (GdkScreen *screen,
return;
}
- gdk_flush ();
+ gdk_display_flush (display);
}