aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-07-15 23:10:05 +0200
committervaxerski <[email protected]>2023-07-15 23:10:05 +0200
commit3229862dd4cbfa93638a4d16ed86ec2fda5d38a6 (patch)
tree216a31fb450310fc40de15460954ec828b9d9d85
parent06563d70342312789d45061d9367e67de9a09776 (diff)
downloadHyprland-3229862dd4cbfa93638a4d16ed86ec2fda5d38a6.tar.gz
Hyprland-3229862dd4cbfa93638a4d16ed86ec2fda5d38a6.zip
xwayland: guard monitor validity in xwayland scale overriding
-rw-r--r--src/managers/XWaylandManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index af4bafa8..9ef02f71 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -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;