Skip to content

Commit

Permalink
windowing: Set a new last active window when the last active window i…
Browse files Browse the repository at this point in the history
…s closed (#566)

Fixes #565

Signed-off-by: Evan Maddock <[email protected]>
  • Loading branch information
EbonJaeger authored May 21, 2024
1 parent 6e91c81 commit dda737e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/windowing/window_group.vala
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ namespace Budgie.Windowing {
}

if (last_active_window == window) {
last_active_window = null;
// Set the last window before this one as the last active window.
// We do this so there should always be a valid window to focus
// when tasklist buttons are clicked.
last_active_window = get_next_window(window, true);
}

window_removed(window);
Expand Down

0 comments on commit dda737e

Please sign in to comment.