mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 575243 - Top left re-sizer is masked by the Minefield Button. r=jimm
This commit is contained in:
parent
ac23d89f9c
commit
66b6cd924f
@ -5494,11 +5494,27 @@ nsWindow::ClientMarginHitTestPoint(PRInt32 mx, PRInt32 my)
|
||||
testResult = HTRIGHT;
|
||||
}
|
||||
|
||||
// There's no HTTOP in maximized state (bug 575493)
|
||||
if (mSizeMode == nsSizeMode_Maximized && testResult == HTTOP)
|
||||
testResult = HTCAPTION;
|
||||
PRBool contentOverlap = PR_TRUE;
|
||||
|
||||
if (mSizeMode == nsSizeMode_Maximized) {
|
||||
// There's no HTTOP in maximized state (bug 575493)
|
||||
if (testResult == HTTOP) {
|
||||
testResult = HTCAPTION;
|
||||
}
|
||||
} else {
|
||||
PRInt32 leftMargin = mNonClientMargins.left == -1 ? mHorResizeMargin : mNonClientMargins.left;
|
||||
PRInt32 rightMargin = mNonClientMargins.right == -1 ? mHorResizeMargin : mNonClientMargins.right;
|
||||
PRInt32 topMargin = mNonClientMargins.top == -1 ? mVertResizeMargin : mNonClientMargins.top;
|
||||
PRInt32 bottomMargin = mNonClientMargins.bottom == -1 ? mVertResizeMargin : mNonClientMargins.bottom;
|
||||
|
||||
contentOverlap = mx >= winRect.left + leftMargin &&
|
||||
mx <= winRect.right - rightMargin &&
|
||||
my >= winRect.top + topMargin &&
|
||||
my <= winRect.bottom - bottomMargin;
|
||||
}
|
||||
|
||||
if (!mIsInMouseCapture &&
|
||||
contentOverlap &&
|
||||
(testResult == HTCLIENT ||
|
||||
testResult == HTTOP ||
|
||||
testResult == HTTOPLEFT ||
|
||||
|
Loading…
Reference in New Issue
Block a user