mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-15 06:59:54 -05:00
opt: not reset tagset when show scratchpad
This commit is contained in:
parent
297221f3cf
commit
4f48dc6461
2 changed files with 7 additions and 3 deletions
|
|
@ -4543,8 +4543,12 @@ void setsel(struct wl_listener *listener, void *data) {
|
|||
void show_hide_client(Client *c) {
|
||||
|
||||
unsigned int target = get_tags_first_tag(c->oldtags);
|
||||
tag_client(&(Arg){.ui = target}, c);
|
||||
// c->tags = c->oldtags;
|
||||
if (!c->is_in_scratchpad) {
|
||||
tag_client(&(Arg){.ui = target}, c);
|
||||
} else {
|
||||
c->tags = c->oldtags;
|
||||
arrange(c->mon, false);
|
||||
}
|
||||
c->isminied = 0;
|
||||
wlr_foreign_toplevel_handle_v1_set_minimized(c->foreign_toplevel, false);
|
||||
focusclient(c, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue