mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-14 17:12:58 +02:00
fix(border): update border when moving from admin windows
This commit is contained in:
@@ -280,6 +280,17 @@ pub fn handle_notifications(wm: Arc<Mutex<WindowManager>>) -> color_eyre::Result
|
|||||||
.unwrap_or_default())
|
.unwrap_or_default())
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// when the focused window has an `Unfocused` border kind, usually this happens if
|
||||||
|
// we focus an admin window and then refocus the previously focused window. For
|
||||||
|
// komorebi it will have the same state has before, however the previously focused
|
||||||
|
// window changed its border to unfocused so now we need to update it again.
|
||||||
|
if !should_process_notification
|
||||||
|
&& window_border(notification.0.unwrap_or_default())
|
||||||
|
.is_some_and(|b| b.window_kind == WindowKind::Unfocused)
|
||||||
|
{
|
||||||
|
should_process_notification = true;
|
||||||
|
}
|
||||||
|
|
||||||
if !should_process_notification && switch_focus_to_from_floating_window {
|
if !should_process_notification && switch_focus_to_from_floating_window {
|
||||||
should_process_notification = true;
|
should_process_notification = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user