mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-24 06:59:54 -05:00
opt: allow client exit minimized status when it is focused
This commit is contained in:
parent
20bd9841ae
commit
0ac95dbd8d
1 changed files with 9 additions and 0 deletions
9
maomao.c
9
maomao.c
|
|
@ -1151,6 +1151,15 @@ void minized(const Arg *arg) {
|
||||||
|
|
||||||
void restore_minized(const Arg *arg) {
|
void restore_minized(const Arg *arg) {
|
||||||
Client *c;
|
Client *c;
|
||||||
|
|
||||||
|
if(selmon && selmon->sel && selmon->sel->is_scratchpad_show && !selmon->sel->iskilling) {
|
||||||
|
show_hide_client(selmon->sel);
|
||||||
|
selmon->sel->is_scratchpad_show = 0;
|
||||||
|
selmon->sel->is_in_scratchpad = 0;
|
||||||
|
setborder_color(selmon->sel);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
wl_list_for_each(c, &clients, link) {
|
wl_list_for_each(c, &clients, link) {
|
||||||
if (c->isminied) {
|
if (c->isminied) {
|
||||||
show_hide_client(c);
|
show_hide_client(c);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue