mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
@@ -223,11 +223,9 @@ void ToggleBorderlessWindowed(void)
|
|||||||
if (!wasOnFullscreen) CORE.Window.previousPosition = CORE.Window.position;
|
if (!wasOnFullscreen) CORE.Window.previousPosition = CORE.Window.position;
|
||||||
CORE.Window.previousScreen = CORE.Window.screen;
|
CORE.Window.previousScreen = CORE.Window.screen;
|
||||||
|
|
||||||
// Set undecorated and topmost modes and flags
|
// Set undecorated flag
|
||||||
glfwSetWindowAttrib(platform.handle, GLFW_DECORATED, GLFW_FALSE);
|
glfwSetWindowAttrib(platform.handle, GLFW_DECORATED, GLFW_FALSE);
|
||||||
CORE.Window.flags |= FLAG_WINDOW_UNDECORATED;
|
CORE.Window.flags |= FLAG_WINDOW_UNDECORATED;
|
||||||
glfwSetWindowAttrib(platform.handle, GLFW_FLOATING, GLFW_TRUE);
|
|
||||||
CORE.Window.flags |= FLAG_WINDOW_TOPMOST;
|
|
||||||
|
|
||||||
// Get monitor position and size
|
// Get monitor position and size
|
||||||
int monitorPosX = 0;
|
int monitorPosX = 0;
|
||||||
@@ -247,9 +245,7 @@ void ToggleBorderlessWindowed(void)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Remove topmost and undecorated modes and flags
|
// Remove undecorated flag
|
||||||
glfwSetWindowAttrib(platform.handle, GLFW_FLOATING, GLFW_FALSE);
|
|
||||||
CORE.Window.flags &= ~FLAG_WINDOW_TOPMOST;
|
|
||||||
glfwSetWindowAttrib(platform.handle, GLFW_DECORATED, GLFW_TRUE);
|
glfwSetWindowAttrib(platform.handle, GLFW_DECORATED, GLFW_TRUE);
|
||||||
CORE.Window.flags &= ~FLAG_WINDOW_UNDECORATED;
|
CORE.Window.flags &= ~FLAG_WINDOW_UNDECORATED;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user