mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-29 18:53:19 +03:00
monitor: minor adjustments
This commit is contained in:
parent
fa3de9b70e
commit
c3a83daa1e
@ -83,9 +83,8 @@ void CMonitor::onConnect(bool noRule) {
|
|||||||
|
|
||||||
wlr_output_enable(output, 0);
|
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);
|
Debug::log(ERR, "Couldn't commit disabled state on output %s", output->name);
|
||||||
}
|
|
||||||
|
|
||||||
Events::listener_change(nullptr, nullptr);
|
Events::listener_change(nullptr, nullptr);
|
||||||
|
|
||||||
@ -127,11 +126,6 @@ void CMonitor::onConnect(bool noRule) {
|
|||||||
|
|
||||||
m_bEnabled = true;
|
m_bEnabled = true;
|
||||||
|
|
||||||
// create it in the arr
|
|
||||||
vecPosition = monitorRule.offset;
|
|
||||||
vecSize = monitorRule.resolution;
|
|
||||||
refreshRate = monitorRule.refreshRate;
|
|
||||||
|
|
||||||
wlr_output_enable(output, 1);
|
wlr_output_enable(output, 1);
|
||||||
|
|
||||||
// set mode, also applies
|
// set mode, also applies
|
||||||
|
@ -1541,6 +1541,7 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
|
|||||||
|
|
||||||
if (!pMonitor->m_bEnabled) {
|
if (!pMonitor->m_bEnabled) {
|
||||||
pMonitor->onConnect(true); // enable it.
|
pMonitor->onConnect(true); // enable it.
|
||||||
|
Debug::log(LOG, "Monitor %s is disabled but is requested to be enabled", pMonitor->szName.c_str());
|
||||||
force = true;
|
force = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user