Skip to content

Commit

Permalink
Let QuickSwitch select the proper client tab, before activating a frame.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 26, 2025
1 parent c78690b commit 1e33702
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/wmswitch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,13 @@ class WindowItemsCtrlr : public ISwitchItems
}

void accept() override {
ZItem active = fActiveItem;
if (active) {
active.frame->activateWindow(true, false);
if (active.frame->isFullscreen())
active.frame->updateLayer();
ZItem act = fActiveItem;
if (act) {
if (act.client != act.frame->client())
act.frame->selectTab(act.client);
act.frame->activateWindow(true, false);
if (act.frame->isFullscreen())
act.frame->updateLayer();
} else {
cancel();
}
Expand Down

0 comments on commit 1e33702

Please sign in to comment.