mirror of
https://github.com/gwm17/glfw.git
synced 2025-02-07 14:48:50 -05:00
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:
parent
6494da3101
commit
5dc9d0f581
|
@ -1678,6 +1678,9 @@ void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window,
|
||||||
{
|
{
|
||||||
long* extents = NULL;
|
long* extents = NULL;
|
||||||
|
|
||||||
|
if (window->monitor || !window->decorated)
|
||||||
|
return;
|
||||||
|
|
||||||
if (_glfw.x11.NET_FRAME_EXTENTS == None)
|
if (_glfw.x11.NET_FRAME_EXTENTS == None)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user