aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-25 14:33:09 +0200
committerDavid Robillard <d@drobilla.net>2019-07-25 14:33:09 +0200
commit70d27c8783595707cc54a43d914b08aca4113c24 (patch)
treed3a5c200a9ac49b71bfb716615b62712239667aa
parent54b1d1131061ecc6fc3070982f1d1221ad80fc9c (diff)
X11: Close input context on destruction
-rw-r--r--pugl/pugl_x11.c6
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);