From 5dc9d0f5810864c4048abd2cf2b8ae00e0c26470 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 28 Feb 2016 18:41:10 +0100 Subject: [PATCH] Avoid X11 frame size query of undecorated windows This also works around an issue where Xfwm4 ignores Motif hints when calculating frame extents. --- src/x11_window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/x11_window.c b/src/x11_window.c index 1ee5f1ff..65cc8a55 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -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;