apply #93 patch
This commit is contained in:
parent
1ebead3148
commit
997ef5c508
|
@ -1059,8 +1059,9 @@ bool FramelessHelper::handleNativeEvent(QWindow *window, const QByteArray &event
|
||||||
clientRect, msg, isTitleBar, &localMouse,
|
clientRect, msg, isTitleBar, &localMouse,
|
||||||
resizeBorderThickness, windowWidth, isTop,
|
resizeBorderThickness, windowWidth, isTop,
|
||||||
window, scaleFactor] {
|
window, scaleFactor] {
|
||||||
|
const bool mousePressed = GetSystemMetrics(SM_SWAPBUTTON) ? GetAsyncKeyState(VK_RBUTTON) < 0 : GetAsyncKeyState(VK_LBUTTON) < 0;
|
||||||
if (IsMaximized(msg->hwnd)) {
|
if (IsMaximized(msg->hwnd)) {
|
||||||
if (isTitleBar) {
|
if (isTitleBar && mousePressed) {
|
||||||
return HTCAPTION;
|
return HTCAPTION;
|
||||||
}
|
}
|
||||||
return HTCLIENT;
|
return HTCLIENT;
|
||||||
|
@ -1099,7 +1100,7 @@ bool FramelessHelper::handleNativeEvent(QWindow *window, const QByteArray &event
|
||||||
if (isRight) {
|
if (isRight) {
|
||||||
return getBorderValue(HTRIGHT);
|
return getBorderValue(HTRIGHT);
|
||||||
}
|
}
|
||||||
if (isTitleBar) {
|
if (isTitleBar && mousePressed) {
|
||||||
return HTCAPTION;
|
return HTCAPTION;
|
||||||
}
|
}
|
||||||
return HTCLIENT;
|
return HTCLIENT;
|
||||||
|
|
Loading…
Reference in New Issue