linux: fix occasional annoying XIO message on exit
This commit is contained in:
parent
a9a579d378
commit
6374069f98
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue