mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-25 19:01:19 +01:00
fix(bar): apply work area offset on monitor reconnect
This commit makes sure the bar applies the the `work_area_offset` correctly after a monitor reconnects; if it is the first time a monitor is connecting, the cached offset won't exist yet.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user