summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-11-30 15:39:07 +0800
committerRichard Grenville <[email protected]>2014-11-30 15:39:07 +0800
commit2dff937b31aa3753dca28fdda741be5d1da25088 (patch)
tree77acbcf2982ed03e2c843b24e6167b8c571a232d
parent6219569d6cb45be6f2104460e02672dd508e344a (diff)
downloadtdebase-2dff937b31aa3753dca28fdda741be5d1da25088.tar.gz
tdebase-2dff937b31aa3753dca28fdda741be5d1da25088.zip
Bug fix: --no-fading-openclose doesn't work when fading out
- Fix the bug that --no-fading-openclose doesn not work when fading out by writing w->fade_last as well in win_determine_fade(). - Write w->fade_last for applying w->fade_force, as well.
-rw-r--r--compton.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/compton.c b/compton.c
index 7d047373b..ddf800209 100644
--- a/compton.c
+++ b/compton.c
@@ -2414,15 +2414,15 @@ calc_dim(session_t *ps, win *w) {
*/
static void
win_determine_fade(session_t *ps, win *w) {
+ // To prevent it from being overwritten by last-paint value if the window is
+ // unmapped on next frame, write w->fade_last as well
if (UNSET != w->fade_force)
- w->fade = w->fade_force;
+ w->fade_last = w->fade = w->fade_force;
else if (ps->o.no_fading_openclose && w->in_openclose)
- w->fade = false;
+ w->fade_last = w->fade = false;
else if (ps->o.no_fading_destroyed_argb && w->destroyed
&& WMODE_ARGB == w->mode && w->client_win && w->client_win != w->id) {
- w->fade = false;
- // Prevent it from being overwritten by last-paint value
- w->fade_last = false;
+ w->fade_last = w->fade = false;
}
// Ignore other possible causes of fading state changes after window
// gets unmapped