Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
win32: fix another issue related to hit test
Browse files Browse the repository at this point in the history
This issue was hidden due to it's actually not executed.

Signed-off-by: Yuhang Zhao <[email protected]>
  • Loading branch information
wangwenx190 committed May 15, 2022
1 parent c2c6ef1 commit 45be647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/framelesshelper_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ FRAMELESSHELPER_STRING_CONSTANT(FindWindowW)
// window is not resizable, the snap layouts feature should also be disabled at the same time,
// hence forward everything to the parent window, we don't need to handle anything here.
if (data.params.isWindowFixedSize()) {
// Ask the parent window for the hit test result and returns it here, to
// let our homemade title bar still draggable.
// Let the mouse event pass through our fallback title bar window to the root window
// under it, to ensure our homemade title bar keep functional.
if (uMsg == WM_NCHITTEST) {
return SendMessageW(parentWindowHandle, uMsg, wParam, lParam);
return HTTRANSPARENT;
}
// Forward all mouse events to the parent window to let the controls inside
// our homemade title bar still continue to work normally. But ignore these
Expand Down

0 comments on commit 45be647

Please sign in to comment.