• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revisióna1e3c68dda0a3c69f25644adde8d6f5a7272f16a (tree)
Tiempo2013-04-16 10:12:21
AutorJose Antonio Ortega Ruiz <jao@gnu....>
CommiterJose Antonio Ortega Ruiz

Log Message

Fix for never-tile window matcher

Cambiar Resumen

Diferencia incremental

--- a/lisp/sawfish/wm/tile/tiler.jl
+++ b/lisp/sawfish/wm/tile/tiler.jl
@@ -6,8 +6,7 @@
66 tileable-windows
77 next-tiling
88 setting
9- set-setting
10- tileable-window-p)
9+ set-setting)
1110
1211 (open rep
1312 rep.system
@@ -48,7 +47,7 @@
4847
4948 (define (register-workspace-tiler ws tiler args auto #!optional name picker)
5049 (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)))
5251 (if (null curr)
5352 (setq %tilers (cons (list ws new null-tiler) %tilers))
5453 (setcdr curr (cons new (cdr curr))))))
@@ -79,12 +78,18 @@
7978
8079 (define (tiling-name ti) (nth 3 ti))
8180
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)))
8390
8491 (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)))
8893
8994 (define (current-tiler-name) (tiling-name (tiling)))
9095
@@ -92,7 +97,9 @@
9297 (let ((test (tiling-master-picker ti)))
9398 (or (and master (not (eq master ignore)) (test master) master)
9499 (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))))))
96103
97104 (define (tile-workspace #!optional new-window destroyed-window)
98105 (interactive)
@@ -105,13 +112,6 @@
105112 (interactive "%f")
106113 (when (restore-window w) (tile-workspace nil w)))
107114
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-
115115 (define (add-autotile w)
116116 (save-size w)
117117 (when (tileable-window-p w)