opt: drag to float no auto set size

This commit is contained in:
DreamMaoMao 2025-03-28 18:51:11 +08:00
parent 3982134e59
commit 40d74c202a

View file

@ -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;