Skip to content

Commit 4070608

Browse files
Chain-Foxkchibisov
andcommitted
platform_impl/linux/x11: fix deadlock in fn set_fullscreen_inner
Co-authored-by: Kirill Chibisov <[email protected]>
1 parent 03335ce commit 4070608

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Unreleased
2+
- On X11, fix deadlock when calling `set_fullscreen_inner`.
23
- On Web, prevent the webpage from scrolling when the user is focused on a winit canvas
34

45
- On Wayland, fix deadlock when calling to `set_inner_size` from a callback.

src/platform_impl/linux/x11/window.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ impl UnownedWindow {
640640
let flusher = self.set_fullscreen_hint(false);
641641
let mut shared_state_lock = self.shared_state.lock();
642642
if let Some(position) = shared_state_lock.restore_position.take() {
643+
drop(shared_state_lock);
643644
self.set_position_inner(position.0, position.1).queue();
644645
}
645646
Some(flusher)

0 commit comments

Comments
 (0)