On Windows, fix bug causing mouse capture to not be released. (#1797)

This commit is contained in:
Samuel 2020-12-15 03:31:13 -03:00 committed by GitHub
parent 39573d65d0
commit 932cbe40bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 10 deletions

View file

@ -45,7 +45,7 @@ pub struct SavedWindow {
#[derive(Clone)]
pub struct MouseProperties {
pub cursor: CursorIcon,
pub buttons_down: u32,
pub capture_count: u32,
cursor_flags: CursorFlags,
pub last_position: Option<PhysicalPosition<f64>>,
}
@ -102,7 +102,7 @@ impl WindowState {
WindowState {
mouse: MouseProperties {
cursor: CursorIcon::default(),
buttons_down: 0,
capture_count: 0,
cursor_flags: CursorFlags::empty(),
last_position: None,
},