From 8e440af22274842fb5655c86ecdafcfba75cc9e9 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sun, 5 Apr 2020 02:50:14 +0100 Subject: [PATCH] win: print more debug messages on opacity change Signed-off-by: Yuxuan Shui --- src/win.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/win.c b/src/win.c index 7d95b94..0690a16 100644 --- a/src/win.c +++ b/src/win.c @@ -919,7 +919,10 @@ void win_on_factor_change(session_t *ps, struct managed_win *w) { w->opacity_target = win_calc_opacity_target(ps, w, false); if (opacity_target_old != w->opacity_target && w->state == WSTATE_MAPPED) { // Only MAPPED can transition to FADING + assert(w->opacity == opacity_target_old); w->state = WSTATE_FADING; + log_debug("Window %#010x (%s) opactiy %f, opacity target %f", w->base.id, + w->name, w->opacity, w->opacity_target); if (!ps->redirected) { CHECK(!win_skip_fading(ps, w)); }