Hi, i am opening a fullscreen window with the dimensions of the desktop:
glfwGetDesktopMode(&mode);
This returns 1600x1200 which is correct and the Window opens in that resolution.
But I am constantly checking the window size with subsequent calls of glfwGetWindowSize(&w,&h); return a different size - e.g. 1534x1178. But only for a short time, then glfwGetWindowSize() returns 1600x1200 again.
If I set the xfce-toobars on both sides to “autohide”, then glfwGetWindowSize() returns 1600x1178, but still not 1600x1200
It also seems like the fullscreen window changes its size in the first 1-2 seconds.
Is this the normal behavior? Linux/Xubuntu 12.04 (It does not happen with the windows-build)
GLFW asks the window manager to handle making windows full screen. It is up to each individual window manager what full screen actually means. It seems that Xfwm4 doesn’t use the entire screen for full screen windows. There’s little that can be done about that, apart from overriding the window manager altogether, but then you lose some window functionality.
Yes, it is. With GLFW 2.x, you may need to poll events once before you’re guaranteed to have a truly up-to-date window size, but it shouldn’t matter very much if your window size is a little off for the first frame.