[sawfish] let maximize-/-fullscreen/xinerama honor maximize-raises



commit 647b03188c7141bb6166729074e39be789a5fe8c
Author: Christopher Roy Bratusek <zanghar freenet de>
Date:   Fri Mar 19 20:14:14 2010 +0100

    let maximize-/-fullscreen/xinerama honor maximize-raises

 ChangeLog                         |    4 ++++
 lisp/sawfish/wm/state/maximize.jl |    6 ++++--
 man/news.texi                     |    3 +++
 3 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c0e5c6d..b914287 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-19  Christopher Bratusek <zanghar freenet de>
+	* lisp/sawfish/wm/state/maximize.jl: make maximize-/-fullscreen/fullxinerama
+	                                     honor maximize-raises [Nolan Leake]
+
 2010-03-13  Christopher Bratusek <zanghar freenet de>
 	* lisp/sawfish/wm/util/display-wininfo.jl: missing require
 
diff --git a/lisp/sawfish/wm/state/maximize.jl b/lisp/sawfish/wm/state/maximize.jl
index 43fa404..c6cec8c 100644
--- a/lisp/sawfish/wm/state/maximize.jl
+++ b/lisp/sawfish/wm/state/maximize.jl
@@ -558,7 +558,8 @@ unmaximized."
                                       (+ (car head-offset) (car vp-offset))
                                       (+ (cdr head-offset) (cdr vp-offset))
                                       (car head-dims) (cdr head-dims))
-	       (raise-window* w)
+	       (when maximize-raises
+	         (raise-window* w))
 	       (window-put w 'maximized-fullscreen t)
 	       (window-put w 'maximized-vertically t)
 	       (window-put w 'maximized-horizontally t)
@@ -595,7 +596,8 @@ t")
                                       (cdr vp-offset)
                                       (+ (car screen-dims) (car vp-offset))
                                       (+ (cdr screen-dims) (cdr vp-offset)))
-	       (raise-window* w)
+	       (when maximize-raises
+	         (raise-window* w))
 	       (window-put w 'maximized-fullscreen t)
 	       (window-put w 'maximized-vertically t)
 	       (window-put w 'maximized-horizontally t)
diff --git a/man/news.texi b/man/news.texi
index e407386..7f1e303 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -43,6 +43,9 @@ accordingly. [Fuchur]
 
 @item Unsupported option @code{ignore-window-input-hint} is deleted [Teika kazura] @*
 It has been invalid for long.
+
+ item Honor maximize-raises in @code{maximize-window-fullscreen} and
+ code{maximize-window-fullxinerama}, too, not just in maximize-window [Nolan Leake]
 @end itemize
 
 @item Other Changes



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