mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: not reset tagset when show scratchpad
This commit is contained in:
parent
22b1b660e5
commit
03eee2f4f1
2 changed files with 7 additions and 3 deletions
|
|
@ -415,10 +415,10 @@ void restore_minimized(const Arg *arg) {
|
||||||
|
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (c->isminied) {
|
if (c->isminied) {
|
||||||
show_hide_client(c);
|
|
||||||
c->is_scratchpad_show = 0;
|
c->is_scratchpad_show = 0;
|
||||||
c->is_in_scratchpad = 0;
|
c->is_in_scratchpad = 0;
|
||||||
c->isnamedscratchpad = 0;
|
c->isnamedscratchpad = 0;
|
||||||
|
show_hide_client(c);
|
||||||
setborder_color(c);
|
setborder_color(c);
|
||||||
arrange(c->mon, false);
|
arrange(c->mon, false);
|
||||||
focusclient(c, 0);
|
focusclient(c, 0);
|
||||||
|
|
|
||||||
|
|
@ -4601,8 +4601,12 @@ void setsel(struct wl_listener *listener, void *data) {
|
||||||
void show_hide_client(Client *c) {
|
void show_hide_client(Client *c) {
|
||||||
|
|
||||||
unsigned int target = get_tags_first_tag(c->oldtags);
|
unsigned int target = get_tags_first_tag(c->oldtags);
|
||||||
tag_client(&(Arg){.ui = target}, c);
|
if (!c->is_in_scratchpad) {
|
||||||
// c->tags = c->oldtags;
|
tag_client(&(Arg){.ui = target}, c);
|
||||||
|
} else {
|
||||||
|
c->tags = c->oldtags;
|
||||||
|
arrange(c->mon, false);
|
||||||
|
}
|
||||||
c->isminied = 0;
|
c->isminied = 0;
|
||||||
wlr_foreign_toplevel_handle_v1_set_minimized(c->foreign_toplevel, false);
|
wlr_foreign_toplevel_handle_v1_set_minimized(c->foreign_toplevel, false);
|
||||||
focusclient(c, 1);
|
focusclient(c, 1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue