1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-08-17 23:01:04 +02:00

fix: popups not accounting for monitor scaling

Fixes #657
This commit is contained in:
Jake Stanger 2024-08-09 22:56:30 +01:00
parent eaf13c564f
commit 45d5bf5feb
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 35 additions and 23 deletions

View file

@ -363,6 +363,8 @@ fn load_output_bars(
// We also need this static to ensure hot-reloading continues to work as best we can.
static INDEX_MAP: OnceLock<Mutex<Vec<String>>> = OnceLock::new();
let output_size = output.logical_size.unwrap_or_default();
let Some(monitor_name) = &output.name else {
return Err(Report::msg("Output missing monitor name"));
};
@ -401,6 +403,7 @@ fn load_output_bars(
app,
&monitor,
monitor_name.to_string(),
output_size,
config.clone(),
ironbar.clone(),
)?]
@ -412,6 +415,7 @@ fn load_output_bars(
app,
&monitor,
monitor_name.to_string(),
output_size,
config.clone(),
ironbar.clone(),
)
@ -421,6 +425,7 @@ fn load_output_bars(
app,
&monitor,
monitor_name.to_string(),
output_size,
config.bar.clone(),
ironbar.clone(),
)?],