aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2016-03-16 06:08:33 +0100
committerPaul Rouget <me@paulrouget.com>2016-03-16 06:08:33 +0100
commit3e9a5e711e10954f6e295d243f775aa4fdf02bee (patch)
tree696d92df30e2b696d55f8da6932155dd79bb218f
parent141f61002e910d62e64e042230161b46f97935f7 (diff)
parent7249529654afe4b3ac6628be45bd2d8bb15dcaf4 (diff)
downloadglutin-3e9a5e711e10954f6e295d243f775aa4fdf02bee.zip
glutin-3e9a5e711e10954f6e295d243f775aa4fdf02bee.tar.gz
Merge pull request #740 from pcwalton/mac-resize-drag-borderless-tomaka
Make Mac borderless windows resizable and draggable.
-rw-r--r--src/api/cocoa/mod.rs4
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 |