some better timing for fading maybe. and reset the opacity when a window is finished...
authorDana Jansens <danakj@orodu.net>
Thu, 6 Mar 2008 15:49:01 +0000 (10:49 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 6 Mar 2008 15:49:01 +0000 (10:49 -0500)
fade.c
window.c

diff --git a/fade.c b/fade.c
index eb59ec6..9ba6c49 100644 (file)
--- a/fade.c
+++ b/fade.c
@@ -52,8 +52,8 @@ fade_init(d_screen_t *sc, int id)
     sc->window_hide = fade_window_hide;
 
     d->fades = list_new();
-    d->fade_step_time = 10000;     /* 5 milliseconds */
-    d->fade_total_time = 200000;  /* 0.15 seconds */
+    d->fade_step_time = 5000;     /* 5 milliseconds */
+    d->fade_total_time = 166000;  /* 0.15 seconds */
 }
 
 void
index fb26a59..cc579a5 100644 (file)
--- a/window.c
+++ b/window.c
@@ -676,5 +676,8 @@ window_zombie_unref(d_window_t *pubw)
         }
 
         w->sc->window_zombie_dead(pubw);
+
+        /* reset the opacity */
+        w->opacity = 0xffff;
     }
 }