Japanese translation of message catalog for Sawfish Window-Manager
Révision | e5efa412820f5ad95eb92b7bac9f2cc1a29c5656 (tree) |
---|---|
l'heure | 2013-09-17 00:05:47 |
Auteur | Christopher Roy Bratusek <nano@tuxf...> |
Commiter | Christopher Roy Bratusek |
fix support for xinerama shadow cropping in compton.jl + improved tab support
@@ -1,3 +1,10 @@ | ||
1 | +2013-09-16 Christopher Roy Bratusek <nano@tuxfamily.org> | |
2 | + * lisp/sawfish/wm/prg/compton.jl: fixup support for | |
3 | + xinerama shadow cropping, improve support for tabs [fuchur] | |
4 | + | |
5 | + * lisp/sawfish/wm/tabs/tabgroup.jl: add tab-group-windows-hook, | |
6 | + returning all windows in the current tabgroup [fuchur] | |
7 | + | |
1 | 8 | 2013-09-14 Christopher Roy Bratusek <nano@tuxfamily.org> |
2 | 9 | * lisp/sawfish/wm/prg/compton.jl: improved working with shadows, |
3 | 10 | don't draw shadows for tabbed windows by default, but provide an |
@@ -38,6 +38,7 @@ | ||
38 | 38 | (define switch-opacity nil) |
39 | 39 | (define update-opacity nil) |
40 | 40 | (define stop-compton nil) |
41 | + | |
41 | 42 | (defgroup window-effects "Window Effects" |
42 | 43 | :group appearance) |
43 | 44 |
@@ -252,7 +253,9 @@ | ||
252 | 253 | (define (zero) (if zero-mask '-z '-e1)) |
253 | 254 | (define (dad) (if shadows-disable-dad '-G '-e1)) |
254 | 255 | (define (smenu) (if shadows-disable-menu (concat "window_type *= 'menu'") (concat "window_type *= 'nil'"))) |
255 | - (define (sxinerama) (if shadows-crop-xinerama "--xinerama-shadow-crop" '-e1 )) | |
256 | + (define (sxinerama) | |
257 | + (if (and (eq (system "compton --help |grep xinerama-shadow-crop") '0) | |
258 | + shadows-crop-xinerama) '--xinerama-shadow-crop '-e1 )) | |
256 | 259 | |
257 | 260 | (define (trans) (/ (+ 0.00 translucency) 100)) |
258 | 261 | (define (fade-i) (/ (+ 0.00 fade-in) 1000)) |
@@ -276,7 +279,7 @@ | ||
276 | 279 | (c-red (red)) |
277 | 280 | (c-green (green)) |
278 | 281 | (c-blue (blue)) |
279 | - (c-sxinerama (sxinerama))) | |
282 | + (c-sxinerama (sxinerama))) | |
280 | 283 | "Start compton. If a compton process already exists, it's beeing killed." |
281 | 284 | (when (program-exists-p "compton") |
282 | 285 | (stop-compton) |
@@ -398,13 +401,13 @@ | ||
398 | 401 | (dim-window w (get-opacity opacity-by-resize))) |
399 | 402 | |
400 | 403 | (define (tab-release w) |
401 | - (if (eq w 'tab-release-window) | |
402 | - (map-windows (lambda (win) | |
403 | - (if opacity-enable | |
404 | - (window-opacity win) | |
405 | - (dim-window win (get-opacity '100))))))) | |
404 | + (if (and (car w) | |
405 | + (not (cdr w))) | |
406 | + (if opacity-enable | |
407 | + (window-opacity (car w)) | |
408 | + (dim-window (car w) (get-opacity '100))))) | |
406 | 409 | |
407 | - (add-hook 'post-command-hook (lambda (w) (if opacity-enable (tab-release w)))) | |
410 | + (add-hook 'tab-group-windows-hook (lambda (w) (if opacity-enable (tab-release w)))) | |
408 | 411 | (add-hook 'after-add-window-hook (lambda (w) (if opacity-enable (window-opacity w)))) |
409 | 412 | (add-hook 'shade-window-hook (lambda (w) (if opacity-enable (window-opacity w)))) |
410 | 413 | (add-hook 'focus-in-hook (lambda (w) (if opacity-enable (window-opacity w)))) |