1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-30 05:58:52 -05:00

Merge branch 'master' into multi-monitor

Conflicts:
	src/x11_window.c
This commit is contained in:
Camilla Berglund 2012-09-23 15:26:53 +02:00
commit 7aaeb6955b
4 changed files with 4 additions and 1 deletions

View File

@ -931,6 +931,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
return GL_FALSE;
}
_glfwPlatformShowWindow(window);
[[window->NS.object contentView] enterFullScreenMode:[NSScreen mainScreen]
withOptions:nil];
}

View File

@ -965,6 +965,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
if (window->mode == GLFW_FULLSCREEN)
{
// Place the window above all topmost windows
_glfwPlatformShowWindow(window);
SetWindowPos(window->Win32.handle, HWND_TOPMOST, 0,0,0,0,
SWP_NOMOVE | SWP_NOSIZE);
}

View File

@ -367,7 +367,7 @@ GLFWAPI GLFWwindow glfwCreateWindow(int width, int height,
if (mode == GLFW_FULLSCREEN)
glfwSetInputMode(window, GLFW_CURSOR_MODE, GLFW_CURSOR_CAPTURED);
if (mode == GLFW_FULLSCREEN || wndconfig.visible)
if (mode == GLFW_WINDOWED && wndconfig.visible)
glfwShowWindow(window);
return window;

View File

@ -853,6 +853,7 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
if (wndconfig->mode == GLFW_FULLSCREEN)
{
_glfwPlatformShowWindow(window);
enterFullscreenMode(window);
}