diff options
author | vaxerski <[email protected]> | 2022-09-10 19:57:57 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-09-10 19:57:57 +0200 |
commit | f024d7114fe08f505ec9af40ee8cd471fbb6c09b (patch) | |
tree | a2918b8d0bca64a6b3d5fcec51e1d2fbb60e4018 | |
parent | 8808d40008ebaa6ab6ce77f279ed09ba4883e092 (diff) | |
download | Hyprland-f024d7114fe08f505ec9af40ee8cd471fbb6c09b.tar.gz Hyprland-f024d7114fe08f505ec9af40ee8cd471fbb6c09b.zip |
allow current in monitorfromstring
-rw-r--r-- | src/Compositor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index c1294480..bbc893ba 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1484,6 +1484,9 @@ CMonitor* CCompositor::getMonitorFromString(const std::string& name) { return nullptr; } } else { + if (name == "current") + return g_pCompositor->m_pLastMonitor; + if (isDirection(name)) { const auto PMONITOR = g_pCompositor->getMonitorInDirection(name[0]); return PMONITOR; |