Skip to content
Snippets Groups Projects
Commit 7b877c4e authored by Camilla Löwy's avatar Camilla Löwy
Browse files

Improve placement when forcing windowed mode

This is a temporary fix while waiting the for workarea query.

Related to #1106.
parent 31cbb20b
Branches
No related tags found
No related merge requests found
...@@ -113,9 +113,11 @@ void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement) ...@@ -113,9 +113,11 @@ void _glfwInputMonitor(_GLFWmonitor* monitor, int action, int placement)
{ {
if (window->monitor == monitor) if (window->monitor == monitor)
{ {
int width, height; int width, height, xoff, yoff;
_glfwPlatformGetWindowSize(window, &width, &height); _glfwPlatformGetWindowSize(window, &width, &height);
_glfwPlatformSetWindowMonitor(window, NULL, 0, 0, width, height, 0); _glfwPlatformSetWindowMonitor(window, NULL, 0, 0, width, height, 0);
_glfwPlatformGetWindowFrameSize(window, &xoff, &yoff, NULL, NULL);
_glfwPlatformSetWindowPos(window, xoff, yoff);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment