mirror of
https://github.com/hyprwm/Hyprland
synced 2026-05-09 07:58:02 +02:00
desktop/window: guard null monitor in xwaylandSizeToReal (#13876)
This commit is contained in:
parent
5083057016
commit
6226f3b197
1 changed files with 1 additions and 1 deletions
|
|
@ -1364,7 +1364,7 @@ Vector2D CWindow::xwaylandSizeToReal(Vector2D size) {
|
|||
|
||||
const auto PMONITOR = m_monitor.lock();
|
||||
const auto SIZE = size.clamp(Vector2D{1, 1}, Math::VECTOR2D_MAX);
|
||||
const auto SCALE = *PXWLFORCESCALEZERO ? PMONITOR->m_scale : 1.0f;
|
||||
const auto SCALE = *PXWLFORCESCALEZERO && PMONITOR ? PMONITOR->m_scale : 1.0f;
|
||||
|
||||
return SIZE / SCALE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue