mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-18 05:34:23 -04:00
opt: optmize restore_minimized size and not restore namedscratchpad
This commit is contained in:
parent
e06dd6ed67
commit
aaa20aacfb
2 changed files with 5 additions and 2 deletions
|
|
@ -477,7 +477,7 @@ int 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 && !c->isnamedscratchpad) {
|
||||||
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;
|
||||||
|
|
|
||||||
|
|
@ -4731,8 +4731,11 @@ void setsel(struct wl_listener *listener, void *data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void show_hide_client(Client *c) {
|
void show_hide_client(Client *c) {
|
||||||
|
unsigned int target = 1;
|
||||||
|
|
||||||
|
set_size_per(c->mon, c);
|
||||||
|
target = get_tags_first_tag(c->oldtags);
|
||||||
|
|
||||||
unsigned int target = get_tags_first_tag(c->oldtags);
|
|
||||||
if (!c->is_in_scratchpad) {
|
if (!c->is_in_scratchpad) {
|
||||||
tag_client(&(Arg){.ui = target}, c);
|
tag_client(&(Arg){.ui = target}, c);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue