mirror of
https://github.com/hyprwm/Hyprland.git
synced 2026-08-18 11:02:10 +00:00
config/lua: allow re-enabling monitors (#14447)
This commit is contained in:
@ -93,8 +93,7 @@ namespace {
|
||||
}},
|
||||
{"disabled", []() -> ILuaConfigValue* { return new CLuaConfigBool(false); },
|
||||
[](ILuaConfigValue* v, CMonitorRuleParser& p) {
|
||||
if (*sc<const Config::BOOL*>(v->data()))
|
||||
p.setDisabled();
|
||||
p.rule().m_disabled = *sc<const Config::BOOL*>(v->data());
|
||||
return true;
|
||||
}},
|
||||
{"transform", []() -> ILuaConfigValue* { return new CLuaConfigInt(0, 0, 7); },
|
||||
|
||||
Reference in New Issue
Block a user