• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine 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

Revisione5efa412820f5ad95eb92b7bac9f2cc1a29c5656 (tree)
Zeit2013-09-17 00:05:47
AutorChristopher Roy Bratusek <nano@tuxf...>
CommiterChristopher Roy Bratusek

Log Message

fix support for xinerama shadow cropping in compton.jl + improved tab support

Ändern Zusammenfassung

Diff

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
18 2013-09-14 Christopher Roy Bratusek <nano@tuxfamily.org>
29 * lisp/sawfish/wm/prg/compton.jl: improved working with shadows,
310 don't draw shadows for tabbed windows by default, but provide an
--- a/lisp/sawfish/wm/prg/compton.jl
+++ b/lisp/sawfish/wm/prg/compton.jl
@@ -38,6 +38,7 @@
3838 (define switch-opacity nil)
3939 (define update-opacity nil)
4040 (define stop-compton nil)
41+
4142 (defgroup window-effects "Window Effects"
4243 :group appearance)
4344
@@ -252,7 +253,9 @@
252253 (define (zero) (if zero-mask '-z '-e1))
253254 (define (dad) (if shadows-disable-dad '-G '-e1))
254255 (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 ))
256259
257260 (define (trans) (/ (+ 0.00 translucency) 100))
258261 (define (fade-i) (/ (+ 0.00 fade-in) 1000))
@@ -276,7 +279,7 @@
276279 (c-red (red))
277280 (c-green (green))
278281 (c-blue (blue))
279- (c-sxinerama (sxinerama)))
282+ (c-sxinerama (sxinerama)))
280283 "Start compton. If a compton process already exists, it's beeing killed."
281284 (when (program-exists-p "compton")
282285 (stop-compton)
@@ -398,13 +401,13 @@
398401 (dim-window w (get-opacity opacity-by-resize)))
399402
400403 (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)))))
406409
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))))
408411 (add-hook 'after-add-window-hook (lambda (w) (if opacity-enable (window-opacity w))))
409412 (add-hook 'shade-window-hook (lambda (w) (if opacity-enable (window-opacity w))))
410413 (add-hook 'focus-in-hook (lambda (w) (if opacity-enable (window-opacity w))))