• 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

Revisiond2e186f84a813ef7e505b5f7ed883efdc00793ba (tree)
Time1999-07-29 01:40:09
Authorjohn <john>
Commiterjohn

Log Message

(raise-windows-on-focus, raise-window-timeout): new variables,
auto-raise functionality

Change Summary

Incremental Difference

--- a/lisp/focus.jl
+++ b/lisp/focus.jl
@@ -26,15 +26,28 @@
2626 focus is only changed when a top-level window is entered, never when the
2727 root window is entered.")
2828
29+(defvar raise-windows-on-focus nil
30+ "When non-nil, windows are raised after receiving focus.")
31+
32+(defvar raise-window-timeout 500
33+ "Time in microseconds until windows are raised if raise-windows-on-focus
34+is set.")
35+
2936 (defun focus-enter-fun (w)
3037 (if (eq w 'root)
3138 (unless sloppy-focus
3239 (set-input-focus nil))
33- (set-input-focus w)))
40+ (set-input-focus w)
41+ (when raise-windows-on-focus
42+ (focus-raise w))))
3443
3544 (defun focus-leave-fun (w)
3645 (unless sloppy-focus
3746 (set-input-focus nil)))
3847
48+(defun focus-raise (w)
49+ (sit-for 0 raise-window-timeout)
50+ (raise-window w))
51+
3952 (add-hook 'enter-notify-hook 'focus-enter-fun t)
4053 (add-hook 'leave-notify-hook 'focus-leave-fun t)
--- a/lisp/sawfish/wm/focus.jl
+++ b/lisp/sawfish/wm/focus.jl
@@ -26,15 +26,28 @@
2626 focus is only changed when a top-level window is entered, never when the
2727 root window is entered.")
2828
29+(defvar raise-windows-on-focus nil
30+ "When non-nil, windows are raised after receiving focus.")
31+
32+(defvar raise-window-timeout 500
33+ "Time in microseconds until windows are raised if raise-windows-on-focus
34+is set.")
35+
2936 (defun focus-enter-fun (w)
3037 (if (eq w 'root)
3138 (unless sloppy-focus
3239 (set-input-focus nil))
33- (set-input-focus w)))
40+ (set-input-focus w)
41+ (when raise-windows-on-focus
42+ (focus-raise w))))
3443
3544 (defun focus-leave-fun (w)
3645 (unless sloppy-focus
3746 (set-input-focus nil)))
3847
48+(defun focus-raise (w)
49+ (sit-for 0 raise-window-timeout)
50+ (raise-window w))
51+
3952 (add-hook 'enter-notify-hook 'focus-enter-fun t)
4053 (add-hook 'leave-notify-hook 'focus-leave-fun t)