|
@@ -1275,6 +1275,11 @@ int InitPlatform(void)
|
|
//glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); // OpenGL API to use. Alternative: GLFW_OPENGL_ES_API
|
|
//glfwWindowHint(GLFW_CLIENT_API, GLFW_OPENGL_API); // OpenGL API to use. Alternative: GLFW_OPENGL_ES_API
|
|
//glfwWindowHint(GLFW_AUX_BUFFERS, 0); // Number of auxiliar buffers
|
|
//glfwWindowHint(GLFW_AUX_BUFFERS, 0); // Number of auxiliar buffers
|
|
|
|
|
|
|
|
+ // Disable GlFW auto iconify behaviour
|
|
|
|
+ // Auto Iconify automatically minimizes (iconifies) the window if the window loses focus
|
|
|
|
+ // additionally auto iconify restores the hardware resolution of the monitor if the window that loses focus is a fullscreen window
|
|
|
|
+ glfwWindowHint(GLFW_AUTO_ICONIFY, 0);
|
|
|
|
+
|
|
// Check window creation flags
|
|
// Check window creation flags
|
|
if ((CORE.Window.flags & FLAG_FULLSCREEN_MODE) > 0) CORE.Window.fullscreen = true;
|
|
if ((CORE.Window.flags & FLAG_FULLSCREEN_MODE) > 0) CORE.Window.fullscreen = true;
|
|
|
|
|
|
@@ -1454,11 +1459,6 @@ int InitPlatform(void)
|
|
// No-fullscreen window creation
|
|
// No-fullscreen window creation
|
|
bool requestWindowedFullscreen = (CORE.Window.screen.height == 0) && (CORE.Window.screen.width == 0);
|
|
bool requestWindowedFullscreen = (CORE.Window.screen.height == 0) && (CORE.Window.screen.width == 0);
|
|
|
|
|
|
- // If we are windowed fullscreen, ensures that window does not minimize when focus is lost.
|
|
|
|
- // This hinting code will not work if the user already specified the correct monitor dimensions;
|
|
|
|
- // at this point we don't know the monitor's dimensions. (Though, how did the user then?)
|
|
|
|
- if (requestWindowedFullscreen) glfwWindowHint(GLFW_AUTO_ICONIFY, 0);
|
|
|
|
-
|
|
|
|
// Default to at least one pixel in size, as creation with a zero dimension is not allowed.
|
|
// Default to at least one pixel in size, as creation with a zero dimension is not allowed.
|
|
int creationWidth = CORE.Window.screen.width != 0 ? CORE.Window.screen.width : 1;
|
|
int creationWidth = CORE.Window.screen.width != 0 ? CORE.Window.screen.width : 1;
|
|
int creationHeight = CORE.Window.screen.height != 0 ? CORE.Window.screen.height : 1;
|
|
int creationHeight = CORE.Window.screen.height != 0 ? CORE.Window.screen.height : 1;
|