opt: allow exit showing scratchpad when use restore_minized dispatch
This commit is contained in:
9
maomao.c
9
maomao.c
@@ -1248,6 +1248,15 @@ void 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;
|
||||
wl_list_for_each(c, &clients, link) {
|
||||
if (c->isminied) {
|
||||
|
||||
Reference in New Issue
Block a user