mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 02:30:03 +01:00
dispatcher: include mirrors of monitor in dpms (#12552)
* dispatcher/dpms: include mirrors * use m_realMonitors instead
This commit is contained in:
parent
afeda6cee6
commit
ebe74be75a
1 changed files with 3 additions and 1 deletions
|
|
@ -2625,7 +2625,9 @@ SDispatchResult CKeybindManager::dpms(std::string arg) {
|
|||
if (arg.find_first_of(' ') != std::string::npos)
|
||||
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)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue