mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 05:36:35 +00:00
win32_window : Respect floating.
This commit is contained in:
parent
3a5e99e59a
commit
2bf75039ee
1
.gitignore
vendored
1
.gitignore
vendored
@ -83,3 +83,4 @@ tests/title
|
|||||||
tests/triangle-vulkan
|
tests/triangle-vulkan
|
||||||
tests/windows
|
tests/windows
|
||||||
|
|
||||||
|
/[Bb]uild*/
|
||||||
|
@ -1741,8 +1741,13 @@ void _glfwPlatformSetWindowMonitor(_GLFWwindow* window,
|
|||||||
|
|
||||||
acquireMonitor(window);
|
acquireMonitor(window);
|
||||||
|
|
||||||
|
HWND z_mode = HWND_TOP;
|
||||||
|
if (window->floating) {
|
||||||
|
z_mode = HWND_TOPMOST;
|
||||||
|
}
|
||||||
|
|
||||||
GetMonitorInfo(window->monitor->win32.handle, &mi);
|
GetMonitorInfo(window->monitor->win32.handle, &mi);
|
||||||
SetWindowPos(window->win32.handle, HWND_TOPMOST,
|
SetWindowPos(window->win32.handle, z_mode,
|
||||||
mi.rcMonitor.left,
|
mi.rcMonitor.left,
|
||||||
mi.rcMonitor.top,
|
mi.rcMonitor.top,
|
||||||
mi.rcMonitor.right - mi.rcMonitor.left,
|
mi.rcMonitor.right - mi.rcMonitor.left,
|
||||||
|
Loading…
Reference in New Issue
Block a user