mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 14:45:59 +01:00
xwayland: guard monitor validity in xwayland scale overriding
This commit is contained in:
parent
06563d7034
commit
3229862dd4
1 changed files with 4 additions and 0 deletions
|
@ -309,6 +309,10 @@ void CHyprXWaylandManager::setXWaylandScale(std::optional<double> scale) {
|
|||
#ifndef NO_XWAYLAND
|
||||
wl_resource* res = nullptr;
|
||||
for (auto& m : g_pCompositor->m_vMonitors) {
|
||||
|
||||
if (!m->output || !m->m_bEnabled)
|
||||
continue;
|
||||
|
||||
const Vector2D LOGICALSIZE = m->vecTransformedSize / scale.value_or(m->scale);
|
||||
|
||||
wl_resource* outputResource = nullptr;
|
||||
|
|
Loading…
Reference in a new issue