[macOS] Move the window if there is no title bar (#382)

* macOS: Move the window if there is no title bar

On macOS by default windows can only be moved by clicking and
dragging on the titlebar, if we spawn a window without one we
need to set the `movableByWindowBackground` property.

Partial fix for #368

* macOS: Make moveByWindowBackground optional

Implements setting the property via WindowBuilderExt:

    WindowBuilder::new()
        .with_decorations(false)
        .with_movable_by_window_background(true)

* Update CHANGELOG
This commit is contained in:
Robert Günzler 2018-01-22 18:07:51 +00:00 committed by Pierre Krieger
parent 0e81251f3a
commit 7e1c70964d
3 changed files with 19 additions and 2 deletions

View file

@ -1,5 +1,6 @@
# Unreleased
- Added method `os::macos::WindowBuilderExt::with_movable_by_window_background(bool)` that allows to move a window without a titlebar - `with_decorations(false)`
- Implement `Window::set_fullscreen`, `Window::set_maximized` and `Window::set_decorations` for Wayland.
# Version 0.10.0 (2017-12-27)