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
  • Loading branch information
BurtonQin committed May 27, 2020
1 parent 03335ce commit d2429cd
Showing 1 changed file with 1 addition and 0 deletions.
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 d2429cd

Please sign in to comment.