This commit is contained in:
Allen Webster 2017-07-18 19:17:51 -04:00
commit 94b8b70472
1 changed files with 7 additions and 8 deletions

View File

@ -1505,14 +1505,13 @@ LinuxX11WindowInit(int argc, char** argv, int* window_width, int* window_height)
linux_maximize_window(true); linux_maximize_window(true);
} }
else if (plat_settings.fullscreen_window){ else if (plat_settings.fullscreen_window){
system_toggle_fullscreen(); linux_toggle_fullscreen();
} }
XSync(linuxvars.XDisplay, False); XSync(linuxvars.XDisplay, False);
XWindowAttributes WinAttribs; XWindowAttributes WinAttribs;
if (XGetWindowAttributes(linuxvars.XDisplay, linuxvars.XWindow, &WinAttribs)) if (XGetWindowAttributes(linuxvars.XDisplay, linuxvars.XWindow, &WinAttribs)){
{
*window_width = WinAttribs.width; *window_width = WinAttribs.width;
*window_height = WinAttribs.height; *window_height = WinAttribs.height;
} }