diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2016-03-14 15:51:10 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2016-03-14 16:45:01 -0700 |
commit | 7249529654afe4b3ac6628be45bd2d8bb15dcaf4 (patch) | |
tree | 0425fb7cc74cd755fd8d711083b144d42cf13f35 /src/api/cocoa | |
parent | 140fd1f15682b159dd88d91e9f506e2cfb18131d (diff) | |
download | glutin-7249529654afe4b3ac6628be45bd2d8bb15dcaf4.tar.gz glutin-7249529654afe4b3ac6628be45bd2d8bb15dcaf4.zip |
Make Mac borderless windows resizable and draggable.
Despite the fact that the style mask contains `NSTitledWindowMask`, the
title doesn't show up for two reasons: (a) we draw over it; (b) we make
it invisible with a call to `-[NSWindow setTitleVisibility:]`.
Addresses servo/servo#9856 and servo/servo#9878.
Partially addresses servo/servo#9812.
Diffstat (limited to 'src/api/cocoa')
-rw-r--r-- | src/api/cocoa/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index db3f749..08fabdd 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -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 | |