opt: drag to float no auto set size
This commit is contained in:
4
maomao.c
4
maomao.c
@@ -4682,7 +4682,7 @@ setfloating(Client *c, int floating) {
|
|||||||
|
|
||||||
target_box = c->geom;
|
target_box = c->geom;
|
||||||
|
|
||||||
if (floating == 1) {
|
if (floating == 1 && c != grabc) {
|
||||||
if (c->istiled && !c->swallowing && !c->is_open_animation) {
|
if (c->istiled && !c->swallowing && !c->is_open_animation) {
|
||||||
target_box.height = target_box.height * 0.8;
|
target_box.height = target_box.height * 0.8;
|
||||||
target_box.width = target_box.width * 0.8;
|
target_box.width = target_box.width * 0.8;
|
||||||
@@ -4699,6 +4699,8 @@ setfloating(Client *c, int floating) {
|
|||||||
resize(c, target_box, 0);
|
resize(c, target_box, 0);
|
||||||
}
|
}
|
||||||
c->istiled = 0;
|
c->istiled = 0;
|
||||||
|
} else if(c->isfloating && c == grabc) {
|
||||||
|
c->istiled = 0;
|
||||||
} else {
|
} else {
|
||||||
c->istiled = 1;
|
c->istiled = 1;
|
||||||
c->is_scratchpad_show = 0;
|
c->is_scratchpad_show = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user