Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
SineStriker committed Aug 26, 2023
1 parent a6af0a3 commit 34410a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/framelesshelper_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
default:
break;
}

const auto it = g_framelessWin32HelperData()->data.find(windowId);
if (it == g_framelessWin32HelperData()->data.end()) {
return false;
Expand Down Expand Up @@ -1017,7 +1018,7 @@ bool FramelessHelperWin::nativeEventFilter(const QByteArray &eventType, void *me
if (previousWindowPart == WindowPart::ChromeButton && currentWindowPart == WindowPart::NotInterested) {
// If current window part is chrome button, it indicates that we must have clicked
// the minimize button or maximize button, we also should send the client leave
// message to Qt
// message to Qt.
emulateClientAreaMessage(WM_NCMOUSELEAVE);
}

Expand Down

0 comments on commit 34410a1

Please sign in to comment.