From f024d7114fe08f505ec9af40ee8cd471fbb6c09b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 10 Sep 2022 19:57:57 +0200 Subject: [PATCH] allow current in monitorfromstring --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;