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