diff options
| author | allusive-dev <[email protected]> | 2023-11-05 07:37:28 +1100 |
|---|---|---|
| committer | allusive-dev <[email protected]> | 2023-11-05 07:37:28 +1100 |
| commit | 52622989ab2766cdce58ef4364bee40596ca0e3c (patch) | |
| tree | 26db8861ea799ef825d8383a213cb0b6e43e8166 /src | |
| parent | default backed to xrender just in case (diff) | |
| download | compfy-52622989ab2766cdce58ef4364bee40596ca0e3c.tar.xz compfy-52622989ab2766cdce58ef4364bee40596ca0e3c.zip | |
slight tweaks
Diffstat (limited to 'src')
| -rw-r--r-- | src/picom.c | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/src/picom.c b/src/picom.c index b96e8f6..c8dea67 100644 --- a/src/picom.c +++ b/src/picom.c @@ -867,25 +867,23 @@ paint_preprocess(session_t *ps, bool *fade_running, bool *animation_running) { w->animation_velocity_h = 0.0; } - // if (!ps->root_desktop_switch_direction) { - // if (w->state == WSTATE_UNMAPPING || w->state == WSTATE_DESTROYING) { - // steps = 0; - // double new_opacity = clamp( - // w->opacity_target_old-w->animation_progress, - // w->opacity_target, 1); - - // if (new_opacity < w->opacity) - // w->opacity = new_opacity; - - // } else if (w->state == WSTATE_MAPPING) { - // steps = 0; - // double new_opacity = clamp( - // w->animation_progress, - // 0.0, w->opacity_target); - - // if (new_opacity > w->opacity) - // w->opacity = new_opacity; - // } + // if (w->state == WSTATE_UNMAPPING || w->state == WSTATE_DESTROYING) { + // steps = 0; + // double new_opacity = clamp( + // w->opacity_target_old-w->animation_progress, + // w->opacity_target, 1); + + // if (new_opacity < w->opacity) + // w->opacity = new_opacity; + + // } else if (w->state == WSTATE_MAPPING) { + // steps = 0; + // double new_opacity = clamp( + // w->animation_progress, + // 0.0, w->opacity_target); + + // if (new_opacity > w->opacity) + // w->opacity = new_opacity; // } *animation_running = true; |