mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 08:05:58 +01:00
fractional: Set preferred scale on monitor config reload (#4406)
This commit is contained in:
parent
c4da4b026d
commit
4cee94b91c
1 changed files with 7 additions and 0 deletions
|
@ -2101,6 +2101,13 @@ bool CHyprRenderer::applyMonitorRule(CMonitor* pMonitor, SMonitorRule* pMonitorR
|
||||||
|
|
||||||
wlr_damage_ring_set_bounds(&pMonitor->damage, pMonitor->vecTransformedSize.x, pMonitor->vecTransformedSize.y);
|
wlr_damage_ring_set_bounds(&pMonitor->damage, pMonitor->vecTransformedSize.x, pMonitor->vecTransformedSize.y);
|
||||||
|
|
||||||
|
// Set scale for all surfaces on this monitor, needed for some clients
|
||||||
|
// but not on unsafe state to avoid crashes
|
||||||
|
if (!g_pCompositor->m_bUnsafeState) {
|
||||||
|
for (auto& w : g_pCompositor->m_vWindows) {
|
||||||
|
w->updateSurfaceScaleTransformDetails();
|
||||||
|
}
|
||||||
|
}
|
||||||
// updato us
|
// updato us
|
||||||
arrangeLayersForMonitor(pMonitor->ID);
|
arrangeLayersForMonitor(pMonitor->ID);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue