mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
opt: optimzie scratchpad change
This commit is contained in:
parent
3ef255ccde
commit
2e553e3dc5
1 changed files with 6 additions and 12 deletions
18
src/maomao.c
18
src/maomao.c
|
|
@ -5981,17 +5981,14 @@ void togglefullscreen(const Arg *arg) {
|
|||
if (!sel)
|
||||
return;
|
||||
|
||||
// if(sel->isfloating)
|
||||
// setfloating(sel, 0);
|
||||
sel->is_scratchpad_show = 0;
|
||||
sel->is_in_scratchpad = 0;
|
||||
sel->isnamedscratchpad = 0;
|
||||
|
||||
if (sel->isfullscreen || sel->ismaxmizescreen)
|
||||
setfullscreen(sel, 0);
|
||||
else
|
||||
setfullscreen(sel, 1);
|
||||
|
||||
sel->is_scratchpad_show = 0;
|
||||
sel->is_in_scratchpad = 0;
|
||||
sel->isnamedscratchpad = 0;
|
||||
}
|
||||
|
||||
void togglemaxmizescreen(const Arg *arg) {
|
||||
|
|
@ -5999,17 +5996,14 @@ void togglemaxmizescreen(const Arg *arg) {
|
|||
if (!sel)
|
||||
return;
|
||||
|
||||
// if(sel->isfloating)
|
||||
// setfloating(sel, 0);
|
||||
sel->is_scratchpad_show = 0;
|
||||
sel->is_in_scratchpad = 0;
|
||||
sel->isnamedscratchpad = 0;
|
||||
|
||||
if (sel->isfullscreen || sel->ismaxmizescreen)
|
||||
setmaxmizescreen(sel, 0);
|
||||
else
|
||||
setmaxmizescreen(sel, 1);
|
||||
|
||||
sel->is_scratchpad_show = 0;
|
||||
sel->is_in_scratchpad = 0;
|
||||
sel->isnamedscratchpad = 0;
|
||||
}
|
||||
|
||||
void togglegaps(const Arg *arg) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue