[sawfish] In match-window.jl, new grouping is given for configurator items. Group "State" is removed.
- From: Christopher Bratusek <chrisb src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [sawfish] In match-window.jl, new grouping is given for configurator items. Group "State" is removed.
- Date: Sat, 28 Nov 2009 09:38:17 +0000 (UTC)
commit 9c2dd9affef8e4b4df8b1e2aa9f2fbc714533143
Author: Teika kazura <teika lavabit com>
Date: Sat Nov 28 14:46:31 2009 +0900
In match-window.jl, new grouping is given for configurator items. Group "State" is removed.
New items for 1.6, "fullscreen" and "fullscreen-xinerama" are combined into "maximize".
lisp/sawfish/wm/ext/match-window.jl | 62 +++++++++++++++++------------------
1 files changed, 30 insertions(+), 32 deletions(-)
---
diff --git a/lisp/sawfish/wm/ext/match-window.jl b/lisp/sawfish/wm/ext/match-window.jl
index 8230930..bbb585c 100644
--- a/lisp/sawfish/wm/ext/match-window.jl
+++ b/lisp/sawfish/wm/ext/match-window.jl
@@ -77,15 +77,16 @@
(choice center east north north-east
north-west south south-east
south-west west)))
- (dimensions (pair (number 1) (number 1)))
(workspace (number 1))
+ (new-workspace boolean)
+ (new-viewport boolean)
(viewport (pair (number 1) (number 1)))
(depth (number -16 16 0))
(placement-weight (number 0))
(fixed-position boolean)
- (maximized (choice all vertical horizontal))
- (new-workspace boolean)
- (new-viewport boolean))
+ (sticky boolean)
+ (sticky-viewport boolean)
+ )
(focus ,(_ "Focus")
(raise-on-focus boolean)
(focus-when-mapped boolean)
@@ -96,31 +97,31 @@
(frame-type ,(lambda ()
`(choice ,@(mapcar car match-window-types))))
(frame-style ,(lambda ()
- `(symbol ,@(find-all-frame-styles t)))))
- (state ,(_ "State")
+ `(symbol ,@(find-all-frame-styles t))))
+ (dimensions (pair (number 1) (number 1)))
+ (maximized (choice all vertical horizontal
+ fullscreen full-xinerama))
+ (iconified boolean)
+ (shaded boolean)
+ (never-iconify boolean)
+ (never-maximize boolean)
+ )
+ (other ,(_ "Other")
(avoid boolean)
(ignored boolean)
- (iconified boolean)
- (shaded boolean)
- (sticky boolean)
- (sticky-viewport boolean)
(group ,(lambda ()
`(symbol ,@(delete-if-not symbolp (window-group-ids)))))
(ungrouped boolean)
(cycle-skip boolean)
(window-list-skip boolean)
(task-list-skip boolean)
- (never-iconify boolean)
- (never-maximize boolean)
- (fullscreen boolean)
- (fullscreen-xinerama boolean))
- (other ,(_ "Other")
(unique-name boolean)
- (auto-gravity boolean)
+ (window-name string)
(shade-hover boolean)
(transients-above (choice all parents none))
(ignore-stacking-requests boolean)
- (window-name string))))
+ (auto-gravity boolean)
+ )))
;; alist of (PROPERTY . FEATURE) mapping properties to the lisp
;; libraries implementing them
@@ -422,12 +423,6 @@
(declare (unused prop))
(set-focus-mode w value)))
- (define-match-window-setter 'fullscreen
- (lambda (w prop value)
- (declare (unused prop))
- (when value
- (window-put w 'queued-fullscreen-maximize t))))
-
(define-match-window-setter 'new-workspace
(lambda (w prop value)
(declare (unused prop))
@@ -467,11 +462,6 @@
(set-screen-viewport col row)
(set-window-viewport w col row))))))
- (define-match-window-setter 'fullscreen-xinerama
- (lambda (w prop value)
- (declare (unused prop))
- (when value
- (window-put w 'queued-fullxinerama-maximize t))))
(define-match-window-setter 'window-name
(lambda (w prop value)
@@ -482,10 +472,18 @@
(define-match-window-setter 'maximized
(lambda (w prop value)
(declare (unused prop))
- (when (memq value '(all vertical))
- (window-put w 'queued-vertical-maximize t))
- (when (memq value '(all horizontal))
- (window-put w 'queued-horizontal-maximize t))))
+ (cond ((eq value 'vertical)
+ (window-put w 'queued-vertical-maximize t))
+ ((eq value 'horizontal)
+ (window-put w 'queued-horizontal-maximize t))
+ ((eq value 'all)
+ (window-put w 'queued-vertical-maximize t)
+ (window-put w 'queued-horizontal-maximize t))
+ ((eq value 'fullscreen)
+ (window-put w 'queued-fullscreen-maximize t))
+ ((eq value 'full-xinerama)
+ (window-put w 'queued-fullxinerama-maximize))
+ )))
(define-match-window-setter 'keymap-trans
(lambda (w prop value)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]