Skip to content

Commit 9f36a7a

Browse files
committed
Fix freeze when setting decorations
1 parent d9c3dac commit 9f36a7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform_impl/windows/window.rs

+1
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,7 @@ impl Window {
725725

726726
let window = self.window.clone();
727727

728+
drop(window_state);
728729
self.thread_executor.execute_in_thread(move || {
729730
winuser::SetWindowLongW(window.0, winuser::GWL_STYLE, style);
730731
winuser::SetWindowLongW(window.0, winuser::GWL_EXSTYLE, ex_style);

0 commit comments

Comments
 (0)