mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
fix: floating window resize judge
This commit is contained in:
parent
0cfdec2889
commit
8b8437fd3c
1 changed files with 2 additions and 2 deletions
4
maomao.c
4
maomao.c
|
|
@ -4503,8 +4503,8 @@ setfloating(Client *c, int floating) {
|
||||||
|
|
||||||
target_box = c->geom;
|
target_box = c->geom;
|
||||||
|
|
||||||
if (c->istiled) {
|
if (c->isfloating) {
|
||||||
if (!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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue