Re: Animator on Un-Iconify
- From: Timo Korvola <Timo Korvola iki fi>
- To: sawfish-list gnome org
- Subject: Re: Animator on Un-Iconify
- Date: Sat, 21 Jun 2008 16:58:19 +0300
Christopher Bratusek <nano-master gmx de> writes:
> Currently Animators are only called when iconifying a Window.
That isn't true: they are actually called via window-state-change-hook.
It is just that the current animators only do anything on iconify.
Here is a version of the outline animator (in
sawfish.wm.animation.outline) that plays in reverse on uniconify.
(define (anim-outline-entry mode w op #!optional action)
(when (eq op 'start)
(case action
((iconified)
(let ((win-pos (window-position w))
(win-dim (window-frame-dimensions w))
(icon-pos (or (window-get w 'icon-position)
anim-outline-icon-coords))
(icon-dim '(1 . 1)))
(if (window-get w 'iconified)
(anim-outline-run w mode win-pos win-dim icon-pos icon-dim)
(anim-outline-run w mode icon-pos icon-dim win-pos win-dim)))))))
The animation plays after the window has been mapped, so it looks even
lamer than in the forward direction.
--
Timo Korvola <URL:http://www.iki.fi/tkorvola>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]