dispatcher: include mirrors of monitor in dpms (#12552)

* dispatcher/dpms: include mirrors

* use m_realMonitors instead
This commit is contained in:
EvilLary 2025-12-05 23:29:39 +03:00 committed by GitHub
parent afeda6cee6
commit ebe74be75a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2625,7 +2625,9 @@ SDispatchResult CKeybindManager::dpms(std::string arg) {
if (arg.find_first_of(' ') != std::string::npos) if (arg.find_first_of(' ') != std::string::npos)
port = arg.substr(arg.find_first_of(' ') + 1); port = arg.substr(arg.find_first_of(' ') + 1);
for (auto const& m : g_pCompositor->m_monitors) { for (auto const& m : g_pCompositor->m_realMonitors) {
if (!m->m_enabled)
continue;
if (!port.empty() && m->m_name != port) if (!port.empty() && m->m_name != port)
continue; continue;