mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-12 11:04:23 -04:00
fix: miss restore overview whe switch tty
This commit is contained in:
parent
685a46ef1c
commit
86d21ab807
2 changed files with 9 additions and 0 deletions
|
|
@ -187,6 +187,10 @@ void mango_ext_workspace_printstatus(Monitor *m) {
|
|||
void refresh_monitors_workspaces_status(Monitor *m) {
|
||||
int32_t i;
|
||||
|
||||
if (!m || !m->wlr_output->enabled || m->iscleanuping) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (m->isoverview) {
|
||||
add_workspace_by_tag(0, m);
|
||||
for (i = 1; i <= LENGTH(tags); i++) {
|
||||
|
|
|
|||
|
|
@ -2751,6 +2751,11 @@ void closemon(Monitor *m) {
|
|||
* move closed monitor's clients to the focused one */
|
||||
Client *c = NULL;
|
||||
int32_t i = 0, nmons = wl_list_length(&mons);
|
||||
|
||||
if (m->isoverview) {
|
||||
toggleoverview(&(Arg){.i = 1});
|
||||
}
|
||||
|
||||
if (!nmons) {
|
||||
selmon = NULL;
|
||||
} else if (m == selmon) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue