• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
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

修订版f9c3845778c2ff6fbd849957c0e824a8ec97d644 (tree)
时间2013-03-31 03:46:31
作者Christopher Roy Bratusek <nano@tuxf...>
CommiterChristopher Roy Bratusek

Log Message

remove sawfish.wm.ext.expose, add never-tile window matcher in favour of never-expose

更改概述

差异

--- a/lisp/sawfish/wm/ext/expose.jl
+++ /dev/null
@@ -1,102 +0,0 @@
1-;; expose.jl --- Tile Sawfish windows in an intelligent (hah!) fashion
2-;;
3-;; Description: Handles tiling of all windows on the current workspace.
4-;; Windows are automatically sized and arranged to make best use of the
5-;; workspace without overlapping.
6-;;
7-;; Author: Mark Triggs <mst@dishevelled.net>
8-;; Maintainer: Christopher Roy Bratusek <nano@tuxfamily.org>
9-
10-(define-structure sawfish.wm.ext.expose
11-
12- (export expose-windows
13- expose-windows-vertically
14- expose-windows-horizontally
15- window-never-expose-p)
16-
17- (open rep
18- rep.data
19- rep.system
20- sawfish.wm.commands
21- sawfish.wm.misc
22- sawfish.wm.windows
23- sawfish.wm.workspace
24- sawfish.wm.viewport
25- sawfish.wm.state.iconify
26- sawfish.wm.state.maximize
27- sawfish.wm.state.ignored
28- sawfish.wm.commands.move-resize)
29-
30- (define-structure-alias expose sawfish.wm.ext.expose)
31-
32- (defvar min-height (/ (screen-height) 4)
33- "For windows at least, wideness is preferable to tallness. So, the minimum
34-height specifies how short you are willing to tolerate your windows before
35-an extra column should be used.")
36-
37- (define (window-never-expose-p w) (window-get w 'never-expose))
38-
39- (defvar top-panel-height 0
40- "This var will be considered when using tile commands offered by hqw-util")
41-
42- (defvar bottom-panel-height 0
43- "This var will be considered when using tile commands offered by hqw-util")
44-
45- (define (expose-windows-vertically)
46- (lambda ()
47- (let (
48- (wins (workspace-windows current-workspace)))
49- (expose-windows wins t
50- #:top-left-corner `(0 . ,top-panel-height)
51- #:height-for-tile (- (screen-height) (+ top-panel-height bottom-panel-height))))))
52-
53- (define (expose-windows-horizontally)
54- (lambda ()
55- (let (
56- (wins (workspace-windows current-workspace)))
57- (expose-windows wins nil
58- #:top-left-corner `(0 . ,top-panel-height)
59- #:height-for-tile (- (screen-height)
60- (+ top-panel-height bottom-panel-height))))))
61-
62- (define (expose-windows wins #!optional
63- vertically
64- #!key
65- (width-for-tile (screen-width))
66- (height-for-tile (screen-height))
67- (top-left-corner '(0 . 0)))
68- "To tile windows."
69- (let* (
70- (windows (remove-if (or window-iconified-p
71- window-never-expose-p
72- window-ignored-p)
73- (or (filter-windows window-on-current-workspace-viewport-p)
74- (filter-windows window-on-current-head-viewport-p))))
75- (len (length windows))
76- (border-width (- (car (window-frame-dimensions (car windows)))
77- (car (window-dimensions (car windows)))))
78- (border-height (- (cdr (window-frame-dimensions (car windows)))
79- (cdr (window-dimensions (car windows)))))
80- (width-step (ceiling (/ width-for-tile
81- len)))
82- (height-step (ceiling (/ height-for-tile
83- len))))
84- (do (
85- (w (car windows) (progn (setq windows (cdr windows)) (car windows)))
86- (x (car top-left-corner) (if vertically
87- x
88- (setq x (+ x width-step))))
89- (y (cdr top-left-corner) (if vertically
90- (setq y (+ y height-step))
91- y))
92- (win-width (if vertically
93- (- width-for-tile border-width)
94- (- width-step border-width)))
95- (win-height (if vertically
96- (- height-step border-height)
97- (- height-for-tile border-height)))
98- )
99- ((null wins) )
100- (move-resize-window-to w x y win-width win-height))))
101-
102- (define-command 'expose-windows expose-windows))
--- a/lisp/sawfish/wm/ext/match-window.jl
+++ b/lisp/sawfish/wm/ext/match-window.jl
@@ -121,7 +121,7 @@
121121 (ignore-stacking-requests boolean)
122122 (auto-gravity boolean)
123123 (never-delete boolean)
124- (never-expose boolean)
124+ (never-tile boolean)
125125 )))
126126
127127 ;; alist of (PROPERTY . FEATURE) mapping properties to the lisp
--- a/lisp/sawfish/wm/tile/utils.jl
+++ b/lisp/sawfish/wm/tile/utils.jl
@@ -18,7 +18,8 @@
1818 align-workspace-windows
1919 notify
2020 take
21- group-by)
21+ group-by
22+ window-never-tile-p)
2223 (open rep
2324 rep.io.timers
2425 sawfish.wm.stacking
@@ -34,13 +35,15 @@
3435
3536 (define (window-workspace w) (car (window-get w 'workspaces)))
3637
38+ (define (window-never-tile-p w) (window-get w 'never-tile))
39+
3740 (define (tileable-workspace-windows #!optional ignore)
3841 (remove-if (lambda (w)
3942 (or (equal w ignore)
4043 (dock-window-p w)
4144 (window-iconified-p w)
4245 ;; window-matcher
43- (window-never-expose-p w)
46+ (window-never-tile-p w)
4447 ;; for pager and stuff
4548 (not (window-visible-p w))
4649 ;; no dialogs