mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-21 05:34:05 -04:00
opt: only disable animation for resizewin tiling window
This commit is contained in:
parent
9397c7f200
commit
7049848047
1 changed files with 2 additions and 13 deletions
|
|
@ -384,9 +384,6 @@ int32_t movewin(const Arg *arg) {
|
|||
if (!c->isfloating)
|
||||
togglefloating(NULL);
|
||||
|
||||
int32_t animations_state_backup = animations;
|
||||
animations = 0;
|
||||
|
||||
switch (arg->ui) {
|
||||
case NUM_TYPE_MINUS:
|
||||
c->geom.x -= arg->i;
|
||||
|
|
@ -414,7 +411,6 @@ int32_t movewin(const Arg *arg) {
|
|||
c->iscustomsize = 1;
|
||||
c->float_geom = c->geom;
|
||||
resize(c, c->geom, 0);
|
||||
animations = animations_state_backup;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -432,7 +428,8 @@ int32_t resizewin(const Arg *arg) {
|
|||
return 0;
|
||||
|
||||
int32_t animations_state_backup = animations;
|
||||
animations = 0;
|
||||
if (!c->isfloating)
|
||||
animations = 0;
|
||||
|
||||
if (ISTILED(c)) {
|
||||
switch (arg->ui) {
|
||||
|
|
@ -586,9 +583,6 @@ int32_t smartmovewin(const Arg *arg) {
|
|||
nx = c->geom.x;
|
||||
ny = c->geom.y;
|
||||
|
||||
int32_t animations_state_backup = animations;
|
||||
animations = 0;
|
||||
|
||||
switch (arg->i) {
|
||||
case UP:
|
||||
tar = -99999;
|
||||
|
|
@ -675,7 +669,6 @@ int32_t smartmovewin(const Arg *arg) {
|
|||
.x = nx, .y = ny, .width = c->geom.width, .height = c->geom.height};
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->float_geom, 1);
|
||||
animations = animations_state_backup;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -691,9 +684,6 @@ int32_t smartresizewin(const Arg *arg) {
|
|||
nw = c->geom.width;
|
||||
nh = c->geom.height;
|
||||
|
||||
int32_t animations_state_backup = animations;
|
||||
animations = 0;
|
||||
|
||||
switch (arg->i) {
|
||||
case UP:
|
||||
nh -= selmon->w.height / 8;
|
||||
|
|
@ -749,7 +739,6 @@ int32_t smartresizewin(const Arg *arg) {
|
|||
.x = c->geom.x, .y = c->geom.y, .width = nw, .height = nh};
|
||||
c->iscustomsize = 1;
|
||||
resize(c, c->float_geom, 1);
|
||||
animations = animations_state_backup;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue