diff --git a/maomao.c b/maomao.c index 9ed18c0..bb54731 100644 --- a/maomao.c +++ b/maomao.c @@ -4682,7 +4682,7 @@ setfloating(Client *c, int floating) { target_box = c->geom; - if (floating == 1) { + if (floating == 1 && c != grabc) { if (c->istiled && !c->swallowing && !c->is_open_animation) { target_box.height = target_box.height * 0.8; target_box.width = target_box.width * 0.8; @@ -4699,6 +4699,8 @@ setfloating(Client *c, int floating) { resize(c, target_box, 0); } c->istiled = 0; + } else if(c->isfloating && c == grabc) { + c->istiled = 0; } else { c->istiled = 1; c->is_scratchpad_show = 0;