Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animatation part I: fading is animation #1220

Merged
merged 6 commits into from
Mar 26, 2024
Merged

Animatation part I: fading is animation #1220

merged 6 commits into from
Mar 26, 2024

Conversation

yshui
Copy link
Owner

@yshui yshui commented Mar 19, 2024

No description provided.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Attention: Patch coverage is 82.12766% with 42 lines in your changes are missing coverage. Please review.

Project coverage is 36.84%. Comparing base (8f53fa6) to head (3b6e003).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             next    #1220      +/-   ##
==========================================
+ Coverage   36.55%   36.84%   +0.28%     
==========================================
  Files          51       52       +1     
  Lines       11948    12016      +68     
==========================================
+ Hits         4368     4427      +59     
- Misses       7580     7589       +9     
Files Coverage Δ
src/win.h 79.41% <ø> (ø)
src/backend/backend.c 60.55% <83.33%> (-1.82%) ⬇️
src/event.c 69.94% <88.23%> (+0.21%) ⬆️
src/picom.c 61.21% <92.59%> (-0.07%) ⬇️
src/dbus.c 21.54% <0.00%> (-0.06%) ⬇️
src/render.c 0.58% <0.00%> (-0.01%) ⬇️
src/win.c 68.44% <91.11%> (+0.82%) ⬆️
src/transition.c 78.57% <78.57%> (ø)

@yshui yshui force-pushed the generic-fading branch 14 times, most recently from 297cbc4 to 9a29e46 Compare March 24, 2024 13:19
This should replace the current fading animation implementation.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Fading behavior is changed slightly when a window's opacity is changed
while the window is already fading in/out.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Now the logic for handling unmapping-then-mapping-at-a-new-position is
all in the same function instead of being split into map_win_start and
win_process_update_flags. Hopefully this is slightly easier to
understand.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
Remove transitional window states, such as UNMAPPING, MAPPING, etc. We
are trying to generialize animation, keeping all those states for
animation/fading will only make things more complicated. Instead the
window state now exactly reflect how the window is to the X server, and
we check the animatable states to determine the animation progress.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
@yshui yshui merged commit 21777fc into next Mar 26, 2024
18 checks passed
@yshui yshui deleted the generic-fading branch March 26, 2024 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants