From 6374069f987524ba8979ece08b268f1bae33dc4b Mon Sep 17 00:00:00 2001 From: insofaras Date: Mon, 5 Sep 2016 02:42:22 +0100 Subject: [PATCH] linux: fix occasional annoying XIO message on exit --- linux_4ed.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/linux_4ed.cpp b/linux_4ed.cpp index 25fdfd21..b30e1301 100644 --- a/linux_4ed.cpp +++ b/linux_4ed.cpp @@ -3471,6 +3471,11 @@ main(int argc, char **argv) } } + if(linuxvars.XDisplay){ + if(linuxvars.XWindow) XDestroyWindow(linuxvars.XDisplay, linuxvars.XWindow); + XCloseDisplay(linuxvars.XDisplay); + } + return 0; }