aboutsummaryrefslogtreecommitdiffstats
path: root/xlib.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-04-07 21:18:02 -0400
committerJesse Luehrs <doy@tozt.net>2014-04-07 21:19:57 -0400
commita8c3d350a87d83c5c8e0b53a89fff85d72873166 (patch)
treec006a7d4dbf7846e40a65106197e8831b1eb9b43 /xlib.c
parenta1ace02fedd9ed0c62ab2a4006a9fe918db3bb83 (diff)
downloadrunes-a8c3d350a87d83c5c8e0b53a89fff85d72873166.tar.gz
runes-a8c3d350a87d83c5c8e0b53a89fff85d72873166.zip
clean up the rest of the xlib stuff
Diffstat (limited to 'xlib.c')
-rw-r--r--xlib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xlib.c b/xlib.c
index b0415bf..73b8d84 100644
--- a/xlib.c
+++ b/xlib.c
@@ -132,6 +132,12 @@ void runes_loop_init(RunesTerm *t, uv_loop_t *loop)
void runes_window_destroy(RunesWindow *w)
{
+ XIM im;
+
+ im = XIMOfIC(w->ic);
+ XDestroyIC(w->ic);
+ XCloseIM(im);
+ XFreeGC(w->dpy, w->gc);
XDestroyWindow(w->dpy, w->w);
XCloseDisplay(w->dpy);