subclass windows in macos so they can be made resizable even with no decorations (#408)

* make windows without decorations resizable and movable in macos

fixes #368

The subclassing logic was copied from servo's fork of glutin:
63026a0f4c/src/api/cocoa/mod.rs (L418)

* remove `isMovableByWindowBackground` and `mouseDownCanMoveWindow`

* revert example changes

* remove resizable mask from decoration: false

* avoid duplicate class declarations

* update changelog

* fix changelog

* changelog whitespace
This commit is contained in:
Joe Moon
2018-04-02 16:12:38 -07:00
committed by Francesca Frangipane
parent 0b922ad9c0
commit be6d2ed3b9
2 changed files with 19 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
# Unreleased
- Added subclass to macos windows so they can be made resizable even with no decorations.
# Version 0.11.3 (2018-03-28)
- Added `set_min_dimensions` and `set_max_dimensions` methods to `Window`, and implemented on Windows, X11, Wayland, and OSX.