mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
fix: someting overview workspace not remove
This commit is contained in:
parent
37120486c3
commit
b211f50e27
1 changed files with 12 additions and 12 deletions
24
src/maomao.c
24
src/maomao.c
|
|
@ -7058,6 +7058,18 @@ void toggleoverview(const Arg *arg) {
|
||||||
unsigned int target;
|
unsigned int target;
|
||||||
unsigned int visible_client_number = 0;
|
unsigned int visible_client_number = 0;
|
||||||
|
|
||||||
|
if (selmon->isoverview) {
|
||||||
|
for (i = 1; i <= LENGTH(tags); i++) {
|
||||||
|
remove_workspace(i, selmon);
|
||||||
|
}
|
||||||
|
add_workspace(0, selmon);
|
||||||
|
} else {
|
||||||
|
remove_workspace(0, selmon);
|
||||||
|
for (i = 1; i <= LENGTH(tags); i++) {
|
||||||
|
add_workspace(i, selmon);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (selmon->isoverview) {
|
if (selmon->isoverview) {
|
||||||
wl_list_for_each(c, &clients,
|
wl_list_for_each(c, &clients,
|
||||||
link) if (c && c->mon == selmon &&
|
link) if (c && c->mon == selmon &&
|
||||||
|
|
@ -7097,18 +7109,6 @@ void toggleoverview(const Arg *arg) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selmon->isoverview) {
|
|
||||||
for (i = 1; i <= LENGTH(tags); i++) {
|
|
||||||
remove_workspace(i, selmon);
|
|
||||||
}
|
|
||||||
add_workspace(0, selmon);
|
|
||||||
} else {
|
|
||||||
remove_workspace(0, selmon);
|
|
||||||
for (i = 1; i <= LENGTH(tags); i++) {
|
|
||||||
add_workspace(i, selmon);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
view(&(Arg){.ui = target}, false);
|
view(&(Arg){.ui = target}, false);
|
||||||
|
|
||||||
if (ov_tab_mode && selmon->isoverview && selmon->sel) {
|
if (ov_tab_mode && selmon->isoverview && selmon->sel) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue