platform_impl/linux/x11: fix deadlock in fn set_fullscreen_inner (#1579)

Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
This commit is contained in:
Boqin Qin 2020-05-28 00:24:08 +08:00 committed by GitHub
parent 03335cef85
commit a4121a2c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -1,4 +1,5 @@
# Unreleased
- On X11, fix deadlock when calling `set_fullscreen_inner`.
- On Web, prevent the webpage from scrolling when the user is focused on a winit canvas
- On Wayland, fix deadlock when calling to `set_inner_size` from a callback.

View file

@ -640,6 +640,7 @@ impl UnownedWindow {
let flusher = self.set_fullscreen_hint(false);
let mut shared_state_lock = self.shared_state.lock();
if let Some(position) = shared_state_lock.restore_position.take() {
drop(shared_state_lock);
self.set_position_inner(position.0, position.1).queue();
}
Some(flusher)