mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 22:00:04 -04:00
Merge pull request #740 from pcwalton/mac-resize-drag-borderless-tomaka
Make Mac borderless windows resizable and draggable.
This commit is contained in:
@@ -404,7 +404,9 @@ impl Window {
|
|||||||
|
|
||||||
let masks = if screen.is_some() || attrs.transparent {
|
let masks = if screen.is_some() || attrs.transparent {
|
||||||
// Fullscreen or transparent window
|
// Fullscreen or transparent window
|
||||||
NSBorderlessWindowMask as NSUInteger
|
NSBorderlessWindowMask as NSUInteger |
|
||||||
|
NSResizableWindowMask as NSUInteger |
|
||||||
|
NSTitledWindowMask as NSUInteger
|
||||||
} else if attrs.decorations {
|
} else if attrs.decorations {
|
||||||
// Classic opaque window with titlebar
|
// Classic opaque window with titlebar
|
||||||
NSClosableWindowMask as NSUInteger |
|
NSClosableWindowMask as NSUInteger |
|
||||||
|
|||||||
Reference in New Issue
Block a user