changeset 72777:049cdc4ea1a1

* xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 10 Sep 2006 12:16:58 +0000
parents 17ab810e0927
children ab6be05ddfb1
files src/xfns.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Sun Sep 10 06:25:40 2006 +0000
+++ b/src/xfns.c	Sun Sep 10 12:16:58 2006 +0000
@@ -4067,11 +4067,15 @@
   x_destroy_all_bitmaps (dpyinfo);
   XSetCloseDownMode (dpyinfo->display, DestroyAll);
 
+#ifdef USE_GTK
+  xg_display_close (dpyinfo->display);
+#else
 #ifdef USE_X_TOOLKIT
   XtCloseDisplay (dpyinfo->display);
 #else
   XCloseDisplay (dpyinfo->display);
 #endif
+#endif /* ! USE_GTK */
 
   x_delete_display (dpyinfo);
   UNBLOCK_INPUT;