Skip to content

Commit d8a01d1

Browse files
committed
fix: layershell calcular in x11 emulation
Log: fix bug 305717 系统缩放调整到125%,最大化应用窗口后会被任务栏覆盖
1 parent f4545d9 commit d8a01d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frame/layershell/x11dlayershellemulation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ void LayerShellEmulation::onExclusionZoneChanged()
175175
if (boundary < screen->geometry().right())
176176
boundary = screen->geometry().right();
177177
}
178-
strut_partial.right = boundary - rect.right() + (m_dlayerShellWindow->exclusionZone()) * scaleFactor;
178+
strut_partial.right = (boundary - rect.right() + m_dlayerShellWindow->exclusionZone()) * scaleFactor;
179179
strut_partial.right_start_y = rect.y();
180180
strut_partial.right_end_y = rect.y() + m_window->height();
181181
} else if ((anchors == DLayerShellWindow::AnchorTop) || (anchors ^ DLayerShellWindow::AnchorTop) == (DLayerShellWindow::AnchorLeft | DLayerShellWindow::AnchorRight)) {
@@ -191,7 +191,7 @@ void LayerShellEmulation::onExclusionZoneChanged()
191191
if (boundary < screen->geometry().bottom())
192192
boundary = screen->geometry().bottom();
193193
}
194-
strut_partial.bottom = boundary - rect.bottom() + (m_dlayerShellWindow->exclusionZone()) * scaleFactor;
194+
strut_partial.bottom = (boundary - rect.bottom() + m_dlayerShellWindow->exclusionZone()) * scaleFactor;
195195
strut_partial.bottom_start_x = rect.x();
196196
strut_partial.bottom_end_x = rect.x() + m_window->width();
197197
}

0 commit comments

Comments
 (0)