diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 9e7f76c4..b01ccb14 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -3,6 +3,9 @@ #include "../Compositor.hpp" void CMonitor::onConnect(bool noRule) { + if (m_bEnabled) + return; + // get monitor rule that matches SMonitorRule monitorRule = g_pConfigManager->getMonitorRuleFor(output->name); @@ -109,6 +112,10 @@ void CMonitor::onConnect(bool noRule) { } void CMonitor::onDisconnect() { + + if (!m_bEnabled) + return; + // Cleanup everything. Move windows back, snap cursor, shit. CMonitor* BACKUPMON = nullptr; for (auto& m : g_pCompositor->m_vMonitors) {