Re: Animator on Un-Iconify

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
         (let ((win-pos (window-position w))
               (win-dim (window-frame-dimensions w))
               (icon-pos (or (window-get w 'icon-position)
               (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:>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]