浏览代码

cocoa: Don't mark fullscreen-desktop windows as non-resizable.

Otherwise, we can't tile SDL apps in Spaces.

Fixes #4883.
Ryan C. Gordon 3 年之前
父节点
当前提交
56c1481cab
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      src/video/cocoa/SDL_cocoawindow.m

+ 0 - 5
src/video/cocoa/SDL_cocoawindow.m

@@ -944,11 +944,6 @@ Cocoa_UpdateClipCursor(SDL_Window * window)
         pendingWindowOperation = PENDING_OPERATION_NONE;
         pendingWindowOperation = PENDING_OPERATION_NONE;
         [self setFullscreenSpace:NO];
         [self setFullscreenSpace:NO];
     } else {
     } else {
-        /* Unset the resizable flag. 
-           This is a workaround for https://bugzilla.libsdl.org/show_bug.cgi?id=3697
-         */
-        SetWindowStyle(window, [nswindow styleMask] & (~NSWindowStyleMaskResizable));
-
         if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) {
         if ((window->flags & SDL_WINDOW_FULLSCREEN_DESKTOP) == SDL_WINDOW_FULLSCREEN_DESKTOP) {
             [NSMenu setMenuBarVisible:NO];
             [NSMenu setMenuBarVisible:NO];
         }
         }