Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Make Mac borderless windows resizable and draggable. #77

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/api/cocoa/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ impl Window {

let masks = if screen.is_some() || attrs.transparent {
// Fullscreen or transparent window
NSBorderlessWindowMask as NSUInteger
NSBorderlessWindowMask as NSUInteger |
NSResizableWindowMask as NSUInteger |
NSTitledWindowMask as NSUInteger
} else if attrs.decorations {
// Classic opaque window with titlebar
NSClosableWindowMask as NSUInteger |
Expand Down