aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-03-15 17:01:20 +0000
committervaxerski <[email protected]>2023-03-15 17:01:20 +0000
commitf5669a7d6bdb54d21426f6aa31a66fe813fc4e7d (patch)
treeb4207fef346f629dd2f1cc6fda2e9610a230eabe
parent25d3d73dbfcd2dd4d7b8254cb97f0f7737cd7c03 (diff)
downloadHyprland-f5669a7d6bdb54d21426f6aa31a66fe813fc4e7d.tar.gz
Hyprland-f5669a7d6bdb54d21426f6aa31a66fe813fc4e7d.zip
events: guard output in change
-rw-r--r--src/events/Monitors.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp
index aade1f6e..b535b1f8 100644
--- a/src/events/Monitors.cpp
+++ b/src/events/Monitors.cpp
@@ -20,6 +20,9 @@ void Events::listener_change(wl_listener* listener, void* data) {
const auto CONFIG = wlr_output_configuration_v1_create();
for (auto& m : g_pCompositor->m_vMonitors) {
+ if (!m->output)
+ continue;
+
const auto CONFIGHEAD = wlr_output_configuration_head_v1_create(CONFIG, m->output);
// TODO: clients off of disabled