Windows: Fix fullscreen deadlock + release 0.17.1 (#622)

* Windows: Fix fullscreen deadlock

* Release winit 0.17.1
This commit is contained in:
Francesca Frangipane 2018-08-07 14:24:43 -04:00 committed by GitHub
parent 09550397d7
commit b2b740fed7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View file

@ -1,6 +1,9 @@
# Unreleased # Unreleased
* On X11, prevent a compilation failure in release mode for versions of Rust greater than or equal to 1.30. # Version 0.17.1 (2018-08-05)
- On X11, prevent a compilation failure in release mode for versions of Rust greater than or equal to 1.30.
- Fixed deadlock that broke fullscreen mode on Windows.
# Version 0.17.0 (2018-08-02) # Version 0.17.0 (2018-08-02)

View file

@ -1,6 +1,6 @@
[package] [package]
name = "winit" name = "winit"
version = "0.17.0" version = "0.17.1"
authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"] authors = ["The winit contributors, Pierre Krieger <pierre.krieger1708@gmail.com>"]
description = "Cross-platform window creation library." description = "Cross-platform window creation library."
keywords = ["windowing"] keywords = ["windowing"]

View file

@ -473,7 +473,7 @@ impl Window {
unsafe fn set_fullscreen_style(&self, window_state: &mut WindowState) -> (LONG, LONG) { unsafe fn set_fullscreen_style(&self, window_state: &mut WindowState) -> (LONG, LONG) {
if window_state.fullscreen.is_none() || window_state.saved_window_info.is_none() { if window_state.fullscreen.is_none() || window_state.saved_window_info.is_none() {
let rect = util::get_window_rect(self.window.0).expect("`GetWindowRect` failed"); let rect = util::get_window_rect(self.window.0).expect("`GetWindowRect` failed");
let dpi_factor = Some(self.get_hidpi_factor()); let dpi_factor = Some(window_state.dpi_factor);
window_state.saved_window_info = Some(events_loop::SavedWindowInfo { window_state.saved_window_info = Some(events_loop::SavedWindowInfo {
style: winuser::GetWindowLongW(self.window.0, winuser::GWL_STYLE), style: winuser::GetWindowLongW(self.window.0, winuser::GWL_STYLE),
ex_style: winuser::GetWindowLongW(self.window.0, winuser::GWL_EXSTYLE), ex_style: winuser::GetWindowLongW(self.window.0, winuser::GWL_EXSTYLE),