From 1cbd06c8a2fa316aff6cc85ec56e235a89c9ac38 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 3 Nov 2013 13:51:34 +0100 Subject: [PATCH] Fixed hidden window positioning on Metacity. --- README.md | 1 + src/x11_window.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index e017b1b2..ab1eaeb4 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ guide in the GLFW documentation. listed for Thunderbolt monitor - [X11] Added setting of the `WM_CLASS` property to the initial window title - [X11] Bugfix: Removed joystick axis value negation left over from GLFW 2 + - [X11] Bugfix: The position of hidden windows was ignored by Metacity ## Contact diff --git a/src/x11_window.c b/src/x11_window.c index f7f172e6..ac78a154 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -256,6 +256,11 @@ static GLboolean createWindow(_GLFWwindow* window, hints->flags |= PPosition; _glfwPlatformGetMonitorPos(wndconfig->monitor, &hints->x, &hints->y); } + else + { + hints->flags |= PPosition; + hints->x = hints->y = 0; + } if (!wndconfig->resizable) {