Skip to content

Commit ce6167b

Browse files
committed
[windows] Fix focus blur event not responding
1 parent d95a21f commit ce6167b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

windows/window_manager_plugin.cpp

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

88-
if (message == WM_NCACTIVATE || message == WM_NCPAINT)
88+
if (message == WM_NCPAINT)
8989
{
9090
if (window_manager->title_bar_style == "hidden")
9191
return 1;
@@ -116,7 +116,7 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd, UINT mes
116116
return (WVR_HREDRAW | WVR_VREDRAW);
117117
}
118118
}
119-
else if (message == WM_NCHITTEST)
119+
else if (message == WM_NCHITTEST)
120120
{
121121
LONG width = 10;
122122
POINT mouse = {LOWORD(lParam), HIWORD(lParam)};
@@ -166,6 +166,9 @@ std::optional<LRESULT> WindowManagerPlugin::HandleWindowProc(HWND hWnd, UINT mes
166166
{
167167
_EmitEvent("blur");
168168
}
169+
170+
if (window_manager->title_bar_style == "hidden")
171+
return 1;
169172
}
170173
else if (message == WM_MOVING)
171174
{

0 commit comments

Comments
 (0)