Japanese translation of message catalog for Sawfish Window-Manager
修订版 | a1e3c68dda0a3c69f25644adde8d6f5a7272f16a (tree) |
---|---|
时间 | 2013-04-16 10:12:21 |
作者 | Jose Antonio Ortega Ruiz <jao@gnu....> |
Commiter | Jose Antonio Ortega Ruiz |
Fix for never-tile window matcher
@@ -6,8 +6,7 @@ | ||
6 | 6 | tileable-windows |
7 | 7 | next-tiling |
8 | 8 | setting |
9 | - set-setting | |
10 | - tileable-window-p) | |
9 | + set-setting) | |
11 | 10 | |
12 | 11 | (open rep |
13 | 12 | rep.system |
@@ -48,7 +47,7 @@ | ||
48 | 47 | |
49 | 48 | (define (register-workspace-tiler ws tiler args auto #!optional name picker) |
50 | 49 | (let ((curr (assoc ws %tilers)) |
51 | - (new (list tiler args auto name (or picker (lambda (w) #t))))) | |
50 | + (new (list tiler args auto name picker))) | |
52 | 51 | (if (null curr) |
53 | 52 | (setq %tilers (cons (list ws new null-tiler) %tilers)) |
54 | 53 | (setcdr curr (cons new (cdr curr)))))) |
@@ -79,12 +78,18 @@ | ||
79 | 78 | |
80 | 79 | (define (tiling-name ti) (nth 3 ti)) |
81 | 80 | |
82 | - (define (tiling-master-picker ti) (nth 4 ti)) | |
81 | + (define (tiling-master-picker ti) | |
82 | + (or (nth 4 ti) (lambda (w) #t))) | |
83 | + | |
84 | + (define (tileable-window-p w) | |
85 | + (and (tiling-auto-p (tiling (window-workspace w)) w) | |
86 | + (not (window-never-tile-p w)) | |
87 | + (not (window-ignored-p w)) | |
88 | + (not (dock-window-p w)) | |
89 | + (eq (window-type w) 'default))) | |
83 | 90 | |
84 | 91 | (define (tileable-windows #!optional ignore) |
85 | - (let ((ws (tileable-workspace-windows ignore)) | |
86 | - (tp (nth 2 (tiling)))) | |
87 | - (if (functionp tp) (filter tp ws) ws))) | |
92 | + (filter tileable-window-p (tileable-workspace-windows ignore))) | |
88 | 93 | |
89 | 94 | (define (current-tiler-name) (tiling-name (tiling))) |
90 | 95 |
@@ -92,7 +97,9 @@ | ||
92 | 97 | (let ((test (tiling-master-picker ti))) |
93 | 98 | (or (and master (not (eq master ignore)) (test master) master) |
94 | 99 | (let ((wl (tileable-workspace-windows ignore))) |
95 | - (or (car (filter test wl)) master (car wl)))))) | |
100 | + (or (car (filter test wl)) | |
101 | + (and (tileable-window-p master) master) | |
102 | + (car wl)))))) | |
96 | 103 | |
97 | 104 | (define (tile-workspace #!optional new-window destroyed-window) |
98 | 105 | (interactive) |
@@ -105,13 +112,6 @@ | ||
105 | 112 | (interactive "%f") |
106 | 113 | (when (restore-window w) (tile-workspace nil w))) |
107 | 114 | |
108 | - (define (tileable-window-p w) | |
109 | - (and (tiling-auto-p (tiling (window-workspace w)) w) | |
110 | - (not (window-never-tile-p w)) | |
111 | - (not (window-ignored-p w)) | |
112 | - (not (dock-window-p w)) | |
113 | - (eq (window-type w) 'default))) | |
114 | - | |
115 | 115 | (define (add-autotile w) |
116 | 116 | (save-size w) |
117 | 117 | (when (tileable-window-p w) |