mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 09:49:47 +01:00
monitors: guard scale in onConnect
This commit is contained in:
parent
eea99abc49
commit
00d199b477
1 changed files with 2 additions and 0 deletions
|
@ -131,6 +131,8 @@ void CMonitor::onConnect(bool noRule) {
|
|||
setupDefaultWS(monitorRule);
|
||||
|
||||
scale = monitorRule.scale;
|
||||
if (scale < 0.1)
|
||||
scale = getDefaultScale();
|
||||
|
||||
m_pThisWrap = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue