Remove resizable attribute on macOS undecorated frames (bug#28512)
* src/nsterm.m (FRAME_DECORATED_FLAGS): Remove Cocoa specific #define. (initFrameFromEmacs): Remove Cocoa specific window style attributes.
This commit is contained in:
parent
b970a4a52a
commit
dc8812829b
1 changed files with 4 additions and 18 deletions
22
src/nsterm.m
22
src/nsterm.m
|
@ -423,20 +423,12 @@ - (NSColor *)colorUsingDefaultColorSpace
|
|||
}
|
||||
|
||||
|
||||
/* GNUstep always shows decorations if the window is resizable,
|
||||
miniaturizable or closable, but Cocoa does strange things in native
|
||||
fullscreen mode if you don't have at least resizable enabled.
|
||||
|
||||
These flags will be OR'd or XOR'd with the NSWindow's styleMask
|
||||
/* These flags will be OR'd or XOR'd with the NSWindow's styleMask
|
||||
property depending on what we're doing. */
|
||||
#ifdef NS_IMPL_COCOA
|
||||
#define FRAME_DECORATED_FLAGS NSWindowStyleMaskTitled
|
||||
#else
|
||||
#define FRAME_DECORATED_FLAGS (NSWindowStyleMaskTitled \
|
||||
| NSWindowStyleMaskResizable \
|
||||
| NSWindowStyleMaskMiniaturizable \
|
||||
| NSWindowStyleMaskClosable)
|
||||
#endif
|
||||
#define FRAME_UNDECORATED_FLAGS NSWindowStyleMaskBorderless
|
||||
|
||||
/* TODO: get rid of need for these forward declarations */
|
||||
|
@ -7211,15 +7203,9 @@ - (instancetype) initFrameFromEmacs: (struct frame *)f
|
|||
|
||||
win = [[EmacsWindow alloc]
|
||||
initWithContentRect: r
|
||||
styleMask: ((FRAME_UNDECORATED (f)
|
||||
? FRAME_UNDECORATED_FLAGS
|
||||
: FRAME_DECORATED_FLAGS)
|
||||
#ifdef NS_IMPL_COCOA
|
||||
| NSWindowStyleMaskResizable
|
||||
| NSWindowStyleMaskMiniaturizable
|
||||
| NSWindowStyleMaskClosable
|
||||
#endif
|
||||
)
|
||||
styleMask: (FRAME_UNDECORATED (f)
|
||||
? FRAME_UNDECORATED_FLAGS
|
||||
: FRAME_DECORATED_FLAGS)
|
||||
backing: NSBackingStoreBuffered
|
||||
defer: YES];
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue