mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-06 07:01:57 -07:00
monitors: guard scale in onConnect
This commit is contained in:
@@ -131,6 +131,8 @@ void CMonitor::onConnect(bool noRule) {
|
|||||||
setupDefaultWS(monitorRule);
|
setupDefaultWS(monitorRule);
|
||||||
|
|
||||||
scale = monitorRule.scale;
|
scale = monitorRule.scale;
|
||||||
|
if (scale < 0.1)
|
||||||
|
scale = getDefaultScale();
|
||||||
|
|
||||||
m_pThisWrap = nullptr;
|
m_pThisWrap = nullptr;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user