Skip to content

Commit 8836f75

Browse files
authored
Fix setResize glitch on titleBarStyle="hidden"
1 parent 69c8ac0 commit 8836f75

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

windows/window_manager_plugin.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd, UINT mes
8585
{
8686
std::optional<LRESULT> result = std::nullopt;
8787

88-
if (message == WM_NCPAINT)
89-
{
90-
if (window_manager->title_bar_style == "hidden")
91-
return 1;
92-
}
93-
else if (message == WM_NCCALCSIZE)
88+
if (message == WM_NCCALCSIZE)
9489
{
9590
if (wParam && window_manager->is_frameless)
9691
{
@@ -118,7 +113,12 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd, UINT mes
118113
return (WVR_HREDRAW | WVR_VREDRAW);
119114
}
120115
}
121-
else if (message == WM_NCHITTEST)
116+
if (message == WM_NCPAINT)
117+
{
118+
if (window_manager->title_bar_style == "hidden")
119+
return 1;
120+
}
121+
else if (message == WM_NCHITTEST)
122122
{
123123
LONG width = 10;
124124
POINT mouse = {LOWORD(lParam), HIWORD(lParam)};

0 commit comments

Comments
 (0)