Skip to content

Commit

Permalink
macos: add window_resizable impl
Browse files Browse the repository at this point in the history
  • Loading branch information
kotx authored and not-fl3 committed Jan 10, 2025
1 parent 3a5b563 commit c09662d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/native/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,10 +1049,13 @@ where

initialize_menu_bar(ns_app);

let window_masks = NSWindowStyleMask::NSTitledWindowMask as u64
let mut window_masks = NSWindowStyleMask::NSTitledWindowMask as u64
| NSWindowStyleMask::NSClosableWindowMask as u64
| NSWindowStyleMask::NSMiniaturizableWindowMask as u64
| NSWindowStyleMask::NSResizableWindowMask as u64;
| NSWindowStyleMask::NSMiniaturizableWindowMask as u64;

if conf.window_resizable {
window_masks |= NSWindowStyleMask::NSResizableWindowMask as u64;
}

let window_frame = NSRect {
origin: NSPoint { x: 0., y: 0. },
Expand Down

0 comments on commit c09662d

Please sign in to comment.