Skip to content

Commit

Permalink
platform_impl/linux/x11: fix deadlock in fn set_fullscreen_inner
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Chibisov <contact@kchibisov.com>
  • Loading branch information
BurtonQin and kchibisov committed May 27, 2020
1 parent 03335ce commit 4070608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions src/platform_impl/linux/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4070608

Please sign in to comment.