mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: not reset curtag when move showing scratchpat from other tag
This commit is contained in:
parent
31b676b639
commit
400629aafa
1 changed files with 5 additions and 5 deletions
10
src/mango.c
10
src/mango.c
|
|
@ -1012,13 +1012,13 @@ bool switch_scratchpad_client_state(Client *c) {
|
|||
}
|
||||
|
||||
if (c->is_in_scratchpad && c->is_scratchpad_show &&
|
||||
(selmon->tagset[selmon->seltags] & c->tags) == 0) {
|
||||
unsigned int target =
|
||||
get_tags_first_tag(selmon->tagset[selmon->seltags]);
|
||||
tag_client(&(Arg){.ui = target}, c);
|
||||
(c->mon->tagset[c->mon->seltags] & c->tags) == 0) {
|
||||
c->tags = c->mon->tagset[c->mon->seltags];
|
||||
arrange(c->mon, false);
|
||||
focusclient(c, true);
|
||||
return true;
|
||||
} else if (c->is_in_scratchpad && c->is_scratchpad_show &&
|
||||
(selmon->tagset[selmon->seltags] & c->tags) != 0) {
|
||||
(c->mon->tagset[c->mon->seltags] & c->tags) != 0) {
|
||||
set_minimized(c);
|
||||
return true;
|
||||
} else if (c && c->is_in_scratchpad && !c->is_scratchpad_show) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue