Explorar o código

Fixed SDL_WINDOW_SKIP_TASKBAR on Windows

The WS_EX_APPWINDOW forces a window onto the taskbar, which is not what we want. Set the style to 0 to use the default behavior.
Sam Lantinga %!s(int64=2) %!d(string=hai) anos
pai
achega
3f67f02d0e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/windows/SDL_windowswindow.c

+ 1 - 1
src/video/windows/SDL_windowswindow.c

@@ -118,7 +118,7 @@ static DWORD GetWindowStyle(SDL_Window *window)
 
 static DWORD GetWindowStyleEx(SDL_Window *window)
 {
-    DWORD style = WS_EX_APPWINDOW;
+    DWORD style = 0;
 
     if (SDL_WINDOW_IS_POPUP(window)) {
         style = WS_EX_TOOLWINDOW | WS_EX_NOACTIVATE;