mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-11 02:01:53 -07:00
allow current in monitorfromstring
This commit is contained in:
@@ -1484,6 +1484,9 @@ CMonitor* CCompositor::getMonitorFromString(const std::string& name) {
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (name == "current")
|
||||||
|
return g_pCompositor->m_pLastMonitor;
|
||||||
|
|
||||||
if (isDirection(name)) {
|
if (isDirection(name)) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorInDirection(name[0]);
|
const auto PMONITOR = g_pCompositor->getMonitorInDirection(name[0]);
|
||||||
return PMONITOR;
|
return PMONITOR;
|
||||||
|
Reference in New Issue
Block a user