This commit is contained in:
Allen Webster 2016-09-04 22:59:09 -04:00
commit d70d151e28
1 changed files with 7 additions and 0 deletions

View File

@ -2643,6 +2643,8 @@ LinuxX11WindowInit(int argc, char** argv, int* WinWidth, int* WinHeight)
}; };
XSetWMProtocols(linuxvars.XDisplay, linuxvars.XWindow, wm_protos, 2); XSetWMProtocols(linuxvars.XDisplay, linuxvars.XWindow, wm_protos, 2);
return true;
} }
internal void internal void
@ -3471,6 +3473,11 @@ main(int argc, char **argv)
} }
} }
if(linuxvars.XDisplay){
if(linuxvars.XWindow) XDestroyWindow(linuxvars.XDisplay, linuxvars.XWindow);
XCloseDisplay(linuxvars.XDisplay);
}
return 0; return 0;
} }