fix fullscreen

main
Dominik Madarász 2024-08-15 18:54:21 +02:00
parent ef6210040a
commit 4760e3ea72
3 changed files with 12 additions and 0 deletions

View File

@ -50176,6 +50176,10 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused)
if (window->callbacks.focus) if (window->callbacks.focus)
window->callbacks.focus((GLFWwindow*) window, focused); window->callbacks.focus((GLFWwindow*) window, focused);
// zak: disable top-most if we lose focus
if (window->monitor)
_glfwPlatformSetWindowFloating(window, focused);
if (!focused) if (!focused)
{ {
int key, button; int key, button;

View File

@ -17193,6 +17193,10 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused)
if (window->callbacks.focus) if (window->callbacks.focus)
window->callbacks.focus((GLFWwindow*) window, focused); window->callbacks.focus((GLFWwindow*) window, focused);
// zak: disable top-most if we lose focus
if (window->monitor)
_glfwPlatformSetWindowFloating(window, focused);
if (!focused) if (!focused)
{ {
int key, button; int key, button;

View File

@ -31227,6 +31227,10 @@ void _glfwInputWindowFocus(_GLFWwindow* window, GLFWbool focused)
if (window->callbacks.focus) if (window->callbacks.focus)
window->callbacks.focus((GLFWwindow*) window, focused); window->callbacks.focus((GLFWwindow*) window, focused);
// zak: disable top-most if we lose focus
if (window->monitor)
_glfwPlatformSetWindowFloating(window, focused);
if (!focused) if (!focused)
{ {
int key, button; int key, button;