Add Xsettings support, for setting scaling related settings

This allows for most GTK and Qt apps to be scaled properly.
In the case of mixed DPI, it will default to using the smallest monitor scale.
This commit is contained in:
Shawn Wallace 2025-05-23 23:25:33 -04:00
parent ec9ff64c1e
commit 572fa4a2bf
9 changed files with 466 additions and 11 deletions

View file

@ -822,6 +822,10 @@ impl Output {
scale: 1,
}
}
pub(super) fn scale(&self) -> i32 {
self.scale
}
}
#[derive(Debug)]
@ -1027,6 +1031,7 @@ impl Output {
self.server.scale(factor);
}
state.output_scales_updated = true;
}
_ => simple_event_shunt! {
self.server, event: Event => [