fix: workaround for Chromium apps breaking below 1.0 scaling
This commit is contained in:
parent
24d29008f0
commit
6108cef8b3
2 changed files with 9 additions and 3 deletions
|
|
@ -956,8 +956,11 @@ impl Common {
|
||||||
);
|
);
|
||||||
if let Some(output) = primary_scanout_output {
|
if let Some(output) = primary_scanout_output {
|
||||||
with_fractional_scale(states, |fraction_scale| {
|
with_fractional_scale(states, |fraction_scale| {
|
||||||
fraction_scale
|
// The 1.0 clamp is a workaround for Chromium
|
||||||
.set_preferred_scale(output.current_scale().fractional_scale());
|
// TODO: remove if Chromium ever gets fixed
|
||||||
|
fraction_scale.set_preferred_scale(
|
||||||
|
output.current_scale().fractional_scale().max(1.0),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,10 @@ impl FractionalScaleHandler for State {
|
||||||
|
|
||||||
with_states(&surface, |states| {
|
with_states(&surface, |states| {
|
||||||
with_fractional_scale(states, |fractional_scale| {
|
with_fractional_scale(states, |fractional_scale| {
|
||||||
fractional_scale.set_preferred_scale(output.current_scale().fractional_scale());
|
// The 1.0 clamp is a workaround for Chromium
|
||||||
|
// TODO: remove if Chromium ever gets fixed
|
||||||
|
fractional_scale
|
||||||
|
.set_preferred_scale(output.current_scale().fractional_scale().max(1.0));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue