[sawfish] Per-window animator from "Window Rules" in configurator.
- From: Christopher Bratusek <chrisb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sawfish] Per-window animator from "Window Rules" in configurator.
- Date: Tue, 1 Feb 2011 17:41:31 +0000 (UTC)
commit 1e7a54a2ee4d67f9cf83f0cdde536723fe6b51e4
Author: Teika kazura <teika lavabit com>
Date: Tue Feb 1 14:20:55 2011 +0900
Per-window animator from "Window Rules" in configurator.
In fact, it's been possible by setting window property. Doc is also written.
lisp/sawfish/wm/animation/setup.jl | 3 ++-
lisp/sawfish/wm/ext/match-window.jl | 1 +
man/news.texi | 5 +++++
man/sawfish.texi | 11 +++++++++--
4 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/lisp/sawfish/wm/animation/setup.jl b/lisp/sawfish/wm/animation/setup.jl
index d014873..a41cfe9 100644
--- a/lisp/sawfish/wm/animation/setup.jl
+++ b/lisp/sawfish/wm/animation/setup.jl
@@ -39,8 +39,9 @@
(defgroup animation "Animation" :group appearance)
(defcustom default-window-animator 'none
- "The default window animation mode"
+ "Animation when an window is iconified."
:type (choice none solid wireframe cross elliptical draft)
+ :tooltip "Can be overriden from \"Window Rules\"."
:group (appearance animation))
;;; animator registration
diff --git a/lisp/sawfish/wm/ext/match-window.jl b/lisp/sawfish/wm/ext/match-window.jl
index 60f53f2..717a8a9 100644
--- a/lisp/sawfish/wm/ext/match-window.jl
+++ b/lisp/sawfish/wm/ext/match-window.jl
@@ -102,6 +102,7 @@
(shade-hover boolean)
(never-iconify boolean)
(never-maximize boolean)
+ (animator (choice none solid wireframe cross elliptical draft))
)
(other ,(_ "Other")
(avoid boolean)
diff --git a/man/news.texi b/man/news.texi
index faa3700..f027638 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -209,6 +209,11 @@ more.
When a lot of windows are open, they should now be more responsive.
+ item Per-window animation mode [Teika kazura]
+
+From the configurator ``Window Rules'' you can set the animation
+mode when iconified. (@pxref{Animating Windows})
+
@item Behavior modification at focus-in [Harald van Dijk]
In order to support ``gnome2-globalmenu'', the reaction policy to
diff --git a/man/sawfish.texi b/man/sawfish.texi
index 35e67fe..79573f5 100644
--- a/man/sawfish.texi
+++ b/man/sawfish.texi
@@ -2773,10 +2773,14 @@ Sawfish provides certain window animation capabilities. They have
been described as ``lame'', so they are off by default.
@defvar default-window-animator
-The default window animation mode, used if a window has no explicit
-animation set. Normally @code{none}.
+The animation mode when an window is iconified. The default is @code{none}.
+
+You can set the animation mode for each window from the configurator
+``Window Rules'', or via window property. (@pxref{Standard Properties})
@end defvar
+Here are listed functions to define and invoke animator.
+
@defun define-window-animator name fun
Define a window animator called @var{name} (a symbol) that is managed
by function @var{fun}. @var{fun} is called as @samp{(fun window op
@@ -7461,6 +7465,9 @@ When set, the user is not allowed to change the position of this window.
When set, the program owning the window has manually moved the window
after it was mapped.
+ item animator
+Animator when iconified. (@pxref{Animating Windows})
+
@end vtable
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]