kwo pushed a commit to branch master. http://git.enlightenment.org/e16/e16.git/commit/?id=4632eda2fa316686331982aa0d155ea98361b50f
commit 4632eda2fa316686331982aa0d155ea98361b50f Author: Kim Woelders <k...@woelders.dk> Date: Thu Jul 15 07:43:22 2021 +0200 Drop animation in EwinSlideSizeTo() if there is no change --- src/slide.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/slide.c b/src/slide.c index 4e6c5cbb..01037d0d 100644 --- a/src/slide.c +++ b/src/slide.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2020 Kim Woelders + * Copyright (C) 2013-2021 Kim Woelders * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to @@ -145,7 +145,9 @@ EwinSlideSizeTo(EWin * ewin, int tx, int ty, int tw, int th, warp = mx < tx || mx >= tx + tw || my < ty || my >= ty + th; } - if (speed == 0) + if (speed == 0 || + (tx == EoGetX(ewin) && ty == EoGetY(ewin) && + tw == EoGetW(ewin) && th == EoGetH(ewin))) { EwinMoveResize(ewin, tx, ty, tw, th, MRF_KEEP_MAXIMIZED); if (warp) --