Skip to content

Commit 06b417f

Browse files
committed
opt: view to client when restore_minimized
1 parent 5547244 commit 06b417f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/dispatch/bind_define.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,12 +714,14 @@ void restore_minimized(const Arg *arg) {
714714
if (!is_keep_before_tag) {
715715
c->mon = selmon;
716716
c->oldtags = c->tags = selmon->tagset[selmon->seltags];
717+
} else {
718+
selmon = c->mon;
717719
}
718720

719721
show_hide_client(c);
720722
setborder_color(c);
721-
arrange(c->mon, false, false);
722-
focusclient(c, 1);
723+
uint32_t target = get_tags_first_tag(c->tags);
724+
view_in_mon(&(Arg){.ui = target}, true, c->mon, true);
723725
warp_cursor(c);
724726
return;
725727
}

0 commit comments

Comments
 (0)