mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 06:31:57 -07:00
add auto scale
This commit is contained in:
@@ -504,11 +504,15 @@ void CConfigManager::handleMonitor(const std::string& command, const std::string
|
||||
}
|
||||
}
|
||||
|
||||
newrule.scale = stof(ARGS[3]);
|
||||
if (ARGS[3].find("auto") == 0) {
|
||||
newrule.scale = -1;
|
||||
} else {
|
||||
newrule.scale = stof(ARGS[3]);
|
||||
|
||||
if (newrule.scale < 0.25f) {
|
||||
parseError = "not a valid scale.";
|
||||
newrule.scale = 1;
|
||||
if (newrule.scale < 0.25f) {
|
||||
parseError = "not a valid scale.";
|
||||
newrule.scale = 1;
|
||||
}
|
||||
}
|
||||
|
||||
int argno = 4;
|
||||
|
Reference in New Issue
Block a user