default hardcoded rule to preferred auto

This commit is contained in:
Vaxry 2022-08-12 22:26:35 +02:00
parent 662b6003c6
commit 9136783e9c

View file

@ -1244,7 +1244,7 @@ SMonitorRule CConfigManager::getMonitorRuleFor(std::string name) {
Debug::log(WARN, "No rules configured. Using the default hardcoded one.");
return SMonitorRule{.name = "", .resolution = Vector2D(1280, 720), .offset = Vector2D(0, 0), .scale = 1};
return SMonitorRule{.name = "", .resolution = Vector2D(0, 0), .offset = Vector2D(-1, -1), .scale = 1}; // 0, 0 is preferred and -1, -1 is auto
}
std::vector<SWindowRule> CConfigManager::getMatchingRules(CWindow* pWindow) {