diff options
author | David Robillard <d@drobilla.net> | 2019-07-25 14:33:09 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-25 14:33:09 +0200 |
commit | 70d27c8783595707cc54a43d914b08aca4113c24 (patch) | |
tree | d3a5c200a9ac49b71bfb716615b62712239667aa /pugl/pugl_x11.c | |
parent | 54b1d1131061ecc6fc3070982f1d1221ad80fc9c (diff) | |
download | pugl-70d27c8783595707cc54a43d914b08aca4113c24.tar.gz pugl-70d27c8783595707cc54a43d914b08aca4113c24.tar.bz2 pugl-70d27c8783595707cc54a43d914b08aca4113c24.zip |
X11: Close input context on destruction
Diffstat (limited to 'pugl/pugl_x11.c')
-rw-r--r-- | pugl/pugl_x11.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pugl/pugl_x11.c b/pugl/pugl_x11.c index e5b8098..692ec04 100644 --- a/pugl/pugl_x11.c +++ b/pugl/pugl_x11.c @@ -205,6 +205,12 @@ void puglDestroy(PuglView* view) { if (view) { + if (view->impl->xic) { + XDestroyIC(view->impl->xic); + } + if (view->impl->xim) { + XCloseIM(view->impl->xim); + } view->impl->ctx.destroy(view); XDestroyWindow(view->impl->display, view->impl->win); XCloseDisplay(view->impl->display); |