mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-20 22:43:47 -07:00
xwayland: guard monitor validity in xwayland scale overriding
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user