From 1f9f7365a066720ec258112d17d7b7893306674d Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Mon, 17 Nov 2003 07:45:14 +0000 Subject: [PATCH] Win32 window creation tweaks --- src/native/win32/org_lwjgl_opengl_Window.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/native/win32/org_lwjgl_opengl_Window.cpp b/src/native/win32/org_lwjgl_opengl_Window.cpp index 53099375..3d9f6706 100755 --- a/src/native/win32/org_lwjgl_opengl_Window.cpp +++ b/src/native/win32/org_lwjgl_opengl_Window.cpp @@ -380,10 +380,10 @@ static bool createWindow(const char * title, int x, int y, int width, int height if (fullscreen) { exstyle = WS_EX_APPWINDOW | WS_EX_TOPMOST; - windowflags = WS_POPUP | WS_VISIBLE; + windowflags = WS_POPUP; } else { exstyle = WS_EX_APPWINDOW; - windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU; + windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU; } // If we're not a fullscreen window, adjust the height to account for the @@ -423,7 +423,6 @@ static bool createWindow(const char * title, int x, int y, int width, int height printf("Created window\n"); #endif -// ShowWindow(hwnd, SW_SHOWNORMAL); ShowWindow(hwnd, SW_SHOW); UpdateWindow(hwnd); SetForegroundWindow(hwnd);