summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-05 22:16:10 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2023-09-05 22:16:14 +0200
commitc3a83daa1e61285a418c39a1d9f29427c2c9a2c3 (patch)
treea4e6e6e5ffeefda251063db9a70f73828025086b /src
parentfa3de9b70e95ea8f0ebac16ae02f8f0eba0d5b92 (diff)
monitor: minor adjustments
Diffstat (limited to 'src')
-rw-r--r--src/helpers/Monitor.cpp8
-rw-r--r--src/render/Renderer.cpp1
2 files changed, 2 insertions, 7 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index aee9a0da..844b34bb 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -83,9 +83,8 @@ void CMonitor::onConnect(bool noRule) {
wlr_output_enable(output, 0);
- if (!wlr_output_commit(output)) {
+ if (!wlr_output_commit(output))
Debug::log(ERR, "Couldn't commit disabled state on output %s", output->name);
- }
Events::listener_change(nullptr, nullptr);
@@ -127,11 +126,6 @@ void CMonitor::onConnect(bool noRule) {
m_bEnabled = true;
- // create it in the arr
- vecPosition = monitorRule.offset;
- vecSize = monitorRule.resolution;
- refreshRate = monitorRule.refreshRate;
-
wlr_output_enable(output, 1);
// set mode, also applies
diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp
index ef7bd8d2..1644a759 100644
--- a/src/render/Renderer.cpp
+++ b/src/render/Renderer.cpp
@@ -1541,6 +1541,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
if (!pMonitor->m_bEnabled) {
pMonitor->onConnect(true); // enable it.
+ Debug::log(LOG, "Monitor %s is disabled but is requested to be enabled", pMonitor->szName.c_str());
force = true;
}