Use QWindow's devicePixelRatio for top resize area
This commit is contained in:
parent
2631d64a5f
commit
eeb2cbc69c
1 changed files with 3 additions and 1 deletions
|
|
@ -407,7 +407,9 @@ void WindowHelper::init() {
|
||||||
const auto maximized = window()->isMaximized()
|
const auto maximized = window()->isMaximized()
|
||||||
|| window()->isFullScreen();
|
|| window()->isFullScreen();
|
||||||
const auto px = int(std::ceil(
|
const auto px = int(std::ceil(
|
||||||
st::windowTitleHeight * style::DevicePixelRatio() / 10.));
|
st::windowTitleHeight
|
||||||
|
* window()->windowHandle()->devicePixelRatio()
|
||||||
|
/ 10.));
|
||||||
return (!maximized && (request->point.y() < px))
|
return (!maximized && (request->point.y() < px))
|
||||||
? HitTestResult::Top
|
? HitTestResult::Top
|
||||||
: HitTestResult::Client;
|
: HitTestResult::Client;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue