mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 06:43:14 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue