mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
Fix freeze when setting decorations
This commit is contained in:
@@ -725,6 +725,7 @@ impl Window {
|
||||
|
||||
let window = self.window.clone();
|
||||
|
||||
drop(window_state);
|
||||
self.thread_executor.execute_in_thread(move || {
|
||||
winuser::SetWindowLongW(window.0, winuser::GWL_STYLE, style);
|
||||
winuser::SetWindowLongW(window.0, winuser::GWL_EXSTYLE, ex_style);
|
||||
|
||||
Reference in New Issue
Block a user