mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-05 06:47:12 -04:00
opt: only disable animation for resizewin tiling window
This commit is contained in:
parent
04ac4bf99c
commit
5942c5d807
1 changed files with 2 additions and 13 deletions
|
|
@ -383,9 +383,6 @@ int32_t movewin(const Arg *arg) {
|
||||||
if (!c->isfloating)
|
if (!c->isfloating)
|
||||||
togglefloating(NULL);
|
togglefloating(NULL);
|
||||||
|
|
||||||
int32_t animations_state_backup = animations;
|
|
||||||
animations = 0;
|
|
||||||
|
|
||||||
switch (arg->ui) {
|
switch (arg->ui) {
|
||||||
case NUM_TYPE_MINUS:
|
case NUM_TYPE_MINUS:
|
||||||
c->geom.x -= arg->i;
|
c->geom.x -= arg->i;
|
||||||
|
|
@ -413,7 +410,6 @@ int32_t movewin(const Arg *arg) {
|
||||||
c->iscustomsize = 1;
|
c->iscustomsize = 1;
|
||||||
c->float_geom = c->geom;
|
c->float_geom = c->geom;
|
||||||
resize(c, c->geom, 0);
|
resize(c, c->geom, 0);
|
||||||
animations = animations_state_backup;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -431,7 +427,8 @@ int32_t resizewin(const Arg *arg) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
int32_t animations_state_backup = animations;
|
int32_t animations_state_backup = animations;
|
||||||
animations = 0;
|
if (!c->isfloating)
|
||||||
|
animations = 0;
|
||||||
|
|
||||||
if (ISTILED(c)) {
|
if (ISTILED(c)) {
|
||||||
switch (arg->ui) {
|
switch (arg->ui) {
|
||||||
|
|
@ -585,9 +582,6 @@ int32_t smartmovewin(const Arg *arg) {
|
||||||
nx = c->geom.x;
|
nx = c->geom.x;
|
||||||
ny = c->geom.y;
|
ny = c->geom.y;
|
||||||
|
|
||||||
int32_t animations_state_backup = animations;
|
|
||||||
animations = 0;
|
|
||||||
|
|
||||||
switch (arg->i) {
|
switch (arg->i) {
|
||||||
case UP:
|
case UP:
|
||||||
tar = -99999;
|
tar = -99999;
|
||||||
|
|
@ -674,7 +668,6 @@ int32_t smartmovewin(const Arg *arg) {
|
||||||
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height};
|
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height};
|
||||||
c->iscustomsize = 1;
|
c->iscustomsize = 1;
|
||||||
resize(c, c->float_geom, 1);
|
resize(c, c->float_geom, 1);
|
||||||
animations = animations_state_backup;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -690,9 +683,6 @@ int32_t smartresizewin(const Arg *arg) {
|
||||||
nw = c->geom.width;
|
nw = c->geom.width;
|
||||||
nh = c->geom.height;
|
nh = c->geom.height;
|
||||||
|
|
||||||
int32_t animations_state_backup = animations;
|
|
||||||
animations = 0;
|
|
||||||
|
|
||||||
switch (arg->i) {
|
switch (arg->i) {
|
||||||
case UP:
|
case UP:
|
||||||
nh -= selmon->w.height / 8;
|
nh -= selmon->w.height / 8;
|
||||||
|
|
@ -748,7 +738,6 @@ int32_t smartresizewin(const Arg *arg) {
|
||||||
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh};
|
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh};
|
||||||
c->iscustomsize = 1;
|
c->iscustomsize = 1;
|
||||||
resize(c, c->float_geom, 1);
|
resize(c, c->float_geom, 1);
|
||||||
animations = animations_state_backup;
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue