linux: fix occasional annoying XIO message on exit

This commit is contained in:
insofaras 2016-09-05 02:42:22 +01:00
parent a9a579d378
commit 6374069f98
1 changed files with 5 additions and 0 deletions

View File

@ -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; return 0;
} }