Skip to content

Commit

Permalink
fix(wm): set last focused workspace on alt-tab
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ds13 authored and LGUG2Z committed Oct 30, 2024
1 parent 4acd408 commit 4198f6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions komorebi/src/workspace_reconciliator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ pub fn handle_notifications(wm: Arc<Mutex<WindowManager>>) -> color_eyre::Result
let mouse_follows_focus = wm.mouse_follows_focus;

if let Some(monitor) = wm.focused_monitor_mut() {
let previous_idx = monitor.focused_workspace_idx();
monitor.set_last_focused_workspace(Option::from(previous_idx));
monitor.focus_workspace(notification.workspace_idx)?;
monitor.load_focused_workspace(mouse_follows_focus)?;
}
Expand Down

0 comments on commit 4198f6f

Please sign in to comment.