mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-16 06:59:52 -05:00
opt: allow exit showing scratchpad when use restore_minized dispatch
This commit is contained in:
parent
6e7c7fcbcb
commit
2ff859bb29
1 changed files with 9 additions and 0 deletions
9
maomao.c
9
maomao.c
|
|
@ -1248,6 +1248,15 @@ void minized(const Arg *arg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void restore_minized(const Arg *arg) {
|
void restore_minized(const Arg *arg) {
|
||||||
|
|
||||||
|
if(selmon && selmon->sel && selmon->sel->is_in_scratchpad && selmon->sel->is_scratchpad_show) {
|
||||||
|
selmon->sel->isminied = 0;
|
||||||
|
selmon->sel->is_scratchpad_show = 0;
|
||||||
|
selmon->sel->is_in_scratchpad = 0;
|
||||||
|
setborder_color(selmon->sel);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
Client *c;
|
Client *c;
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (c->isminied) {
|
if (c->isminied) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue