feat: restore the current tag when after chvt

This commit is contained in:
DreamMaoMao 2025-12-29 11:13:50 +08:00
parent 42f722ada2
commit f749500449
2 changed files with 30 additions and 5 deletions

View file

@ -31,8 +31,14 @@ int bind_to_view(const Arg *arg) {
}
int chvt(const Arg *arg) {
if (selmon) {
chvt_backup_tag = selmon->pertag->curtag;
strncpy(chvt_backup_selmon, selmon->wlr_output->name,
sizeof(chvt_backup_selmon) - 1);
}
wlr_session_change_vt(session, arg->ui);
return 0;
return 1;
}
int create_virtual_output(const Arg *arg) {