diff --git a/komorebi-bar/src/bar.rs b/komorebi-bar/src/bar.rs index 092b0a42..c9dcf75f 100644 --- a/komorebi-bar/src/bar.rs +++ b/komorebi-bar/src/bar.rs @@ -718,6 +718,12 @@ impl eframe::App for Komobar { } } + // Reset the current `work_area_offset` so that it gets recalculated and + // properly applied again, since if the monitor has connected for the first + // time it won't have the work_area_offset applied but the bar thinks it + // does. + self.work_area_offset = komorebi_client::Rect::default(); + should_apply_config = true; } self.disabled = false;