From d2429cd4ac818370762c667356619dc083d0509d Mon Sep 17 00:00:00 2001 From: BurtonQin Date: Wed, 27 May 2020 23:21:51 +0800 Subject: [PATCH] platform_impl/linux/x11: fix deadlock in fn set_fullscreen_inner --- src/platform_impl/linux/x11/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platform_impl/linux/x11/window.rs b/src/platform_impl/linux/x11/window.rs index f178ba3aa54..f4cb3d45363 100644 --- a/src/platform_impl/linux/x11/window.rs +++ b/src/platform_impl/linux/x11/window.rs @@ -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)