File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -196,14 +196,16 @@ kill_window_response (GtkDialog *dialog,
196196 gpointer user_data )
197197{
198198 if (response_id == GTK_RESPONSE_ACCEPT ) {
199- Display * display ;
199+ GdkDisplay * display ;
200+ Display * xdisplay ;
200201 Window window = (Window ) user_data ;
201202
202- display = GDK_DISPLAY_XDISPLAY (gtk_widget_get_display (GTK_WIDGET (dialog )));
203+ display = gtk_widget_get_display (GTK_WIDGET (dialog ));
204+ xdisplay = GDK_DISPLAY_XDISPLAY (display );
203205
204206 gdk_error_trap_push ();
205- XKillClient (display , window );
206- gdk_flush ( );
207+ XKillClient (xdisplay , window );
208+ gdk_display_flush ( display );
207209 gdk_error_trap_pop_ignored ();
208210 }
209211
@@ -352,5 +354,5 @@ panel_force_quit (GdkScreen *screen,
352354 return ;
353355 }
354356
355- gdk_flush ( );
357+ gdk_display_flush ( display );
356358}
You can’t perform that action at this time.
0 commit comments