• 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

Revision511a71e5984f81296662a8c998e952fb88daa6a7 (tree)
Time1999-08-01 22:33:05
Authorjohn <john>
Commiterjohn

Log Message

(ignore-program-positions): program specified window positions are
ignored if this is set. User specified positions are never ignored

Change Summary

Incremental Difference

--- a/lisp/place-window.jl
+++ b/lisp/place-window.jl
@@ -24,9 +24,17 @@
2424 (defvar place-window-mode 'random
2525 "Method of selecting the position of a freshly-mapped window.")
2626
27+(defvar ignore-program-positions nil
28+ "When non-nil the PPosition size hint is ignored.")
29+
2730 ;; called from the place-window-hook
2831 (defun place-window (w)
29- (if (window-transient-p w)
32+ (let
33+ ((hints (window-size-hints w)))
34+ (if (or (window-transient-p w)
35+ (cdr (assq 'user-position hints))
36+ (and (not ignore-program-positions)
37+ (cdr (assq 'program-position hints))))
3038 nil
3139 (let
3240 ((mode (or (window-get w 'place-mode) place-window-mode)))
--- a/lisp/sawfish/wm/placement.jl
+++ b/lisp/sawfish/wm/placement.jl
@@ -24,9 +24,17 @@
2424 (defvar place-window-mode 'random
2525 "Method of selecting the position of a freshly-mapped window.")
2626
27+(defvar ignore-program-positions nil
28+ "When non-nil the PPosition size hint is ignored.")
29+
2730 ;; called from the place-window-hook
2831 (defun place-window (w)
29- (if (window-transient-p w)
32+ (let
33+ ((hints (window-size-hints w)))
34+ (if (or (window-transient-p w)
35+ (cdr (assq 'user-position hints))
36+ (and (not ignore-program-positions)
37+ (cdr (assq 'program-position hints))))
3038 nil
3139 (let
3240 ((mode (or (window-get w 'place-mode) place-window-mode)))