Avoid X11 frame size query of undecorated windows

This also works around an issue where Xfwm4 ignores Motif hints when
calculating frame extents.
This commit is contained in:
Camilla Berglund 2016-02-28 18:41:10 +01:00
parent 6494da3101
commit 5dc9d0f581

View File

@ -1678,6 +1678,9 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,
{
long* extents = NULL;
if (window->monitor || !window->decorated)
return;
if (_glfw.x11.NET_FRAME_EXTENTS == None)
return;