Restore window flags when normalizing

This commit is contained in:
Ximi1970
2020-12-04 22:20:14 +01:00
parent a0f9458864
commit 1f3ed0f364

View File

@@ -413,6 +413,13 @@ void WindowCtrlWin::normalizeWindow( quint64 window )
return;
}
long style = GetWindowLong( (HWND)window, GWL_STYLE );
style &= ~(WS_EX_TOOLWINDOW);
style |= WS_EX_APPWINDOW;
SetWindowLong( (HWND)window, GWL_STYLE, style );
ShowWindow( (HWND)window, SW_RESTORE );
SetForegroundWindow( (HWND)window );
}