mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-10 04:27:57 -05:00
feat: restore the current tag when after chvt
This commit is contained in:
parent
42f722ada2
commit
f749500449
2 changed files with 30 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue