Add set_decorations method to Window (#365)

This has been stubbed on all platforms other than X11. The X11 implementation has also been
revised to toggle correctly, as it was previously only able to remove decorations.
This commit is contained in:
Francesca Sunshine
2017-12-22 07:50:46 -05:00
committed by Pierre Krieger
parent b36a8e010f
commit 463f316cb8
9 changed files with 79 additions and 37 deletions

View File

@@ -3,6 +3,7 @@
- Add support for `Touch` for emscripten backend.
- Added support for `DroppedFile`, `HoveredFile`, and `HoveredFileCancelled` to X11 backend.
- **Breaking:** `unix::WindowExt` no longer returns pointers for things that aren't actually pointers; `get_xlib_window` now returns `Option<std::os::raw::c_ulong>` and `get_xlib_screen_id` returns `Option<std::os::raw::c_int>`. Additionally, methods that previously returned `libc::c_void` have been changed to return `std::os::raw::c_void`, which are not interchangeable types, so users wanting the former will need to explicitly cast.
- Added `set_decorations` method to `Window` to allow decorations to be toggled after the window is built. Presently only implemented on X11.
# Version 0.9.0 (2017-12-01)