aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv <[email protected]>2006-09-10 12:16:58 +0000
committerJan Djärv <[email protected]>2006-09-10 12:16:58 +0000
commit16e4bfaf96f1dd3b4d242e96f4b1a3c95bf065af (patch)
tree23e3a8118d7bf927b75e14f8181f3cd6afa06a2c /src
parentd7b1ea44e5fc76b67e3f6a6a0c48123e0b42e6de (diff)
* xfns.c (Fx_close_connection): Call xg_display_close when USE_GTK.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index dd8035c95a..2bb4310e43 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4067,11 +4067,15 @@ If DISPLAY is nil, that stands for the selected frame's display. */)
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;