diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-05 22:16:10 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-09-05 22:16:14 +0200 |
| commit | c3a83daa1e61285a418c39a1d9f29427c2c9a2c3 (patch) | |
| tree | a4e6e6e5ffeefda251063db9a70f73828025086b /src/helpers/Monitor.cpp | |
| parent | fa3de9b70e95ea8f0ebac16ae02f8f0eba0d5b92 (diff) | |
monitor: minor adjustments
Diffstat (limited to 'src/helpers/Monitor.cpp')
| -rw-r--r-- | src/helpers/Monitor.cpp | 8 |
1 files changed, 1 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 |
