Japanese translation of message catalog for Sawfish Window-Manager
Revisão | 31d5cceae3b0a8cf6fcef1704f8ee5be97c5a2af (tree) |
---|---|
Hora | 2000-05-10 02:06:09 |
Autor | john <john> |
Commiter | john |
(transient-unmap-window): misc improvements, should fix the reported
problems in click-to-focus mode
@@ -67,13 +67,15 @@ | ||
67 | 67 | (when (or (not parent) |
68 | 68 | (not (window-mapped-p parent)) |
69 | 69 | (not (window-visible-p parent)) |
70 | - (window-outside-viewport-p parent)) | |
70 | + (window-outside-viewport-p parent) | |
71 | + (not (window-really-wants-input-p parent))) | |
71 | 72 | ;; if no parent, choose the topmost window (if in click-to-focus |
72 | 73 | ;; mode) or the window under the pointer otherwise |
73 | - (unless (eq focus-mode 'click) | |
74 | - (setq parent (query-pointer-window))) | |
74 | + (if (eq focus-mode 'click) | |
75 | + (setq parent (query-pointer-window)) | |
76 | + (setq parent nil)) | |
75 | 77 | (unless (or parent (eq focus-mode 'enter-exit)) |
76 | - (setq parent (car (window-order current-workspace))))) | |
78 | + (setq parent (window-order-most-recent)))) | |
77 | 79 | (when (or (null parent) (window-really-wants-input-p parent)) |
78 | 80 | (set-input-focus parent))))) |
79 | 81 |
@@ -67,13 +67,15 @@ | ||
67 | 67 | (when (or (not parent) |
68 | 68 | (not (window-mapped-p parent)) |
69 | 69 | (not (window-visible-p parent)) |
70 | - (window-outside-viewport-p parent)) | |
70 | + (window-outside-viewport-p parent) | |
71 | + (not (window-really-wants-input-p parent))) | |
71 | 72 | ;; if no parent, choose the topmost window (if in click-to-focus |
72 | 73 | ;; mode) or the window under the pointer otherwise |
73 | - (unless (eq focus-mode 'click) | |
74 | - (setq parent (query-pointer-window))) | |
74 | + (if (eq focus-mode 'click) | |
75 | + (setq parent (query-pointer-window)) | |
76 | + (setq parent nil)) | |
75 | 77 | (unless (or parent (eq focus-mode 'enter-exit)) |
76 | - (setq parent (car (window-order current-workspace))))) | |
78 | + (setq parent (window-order-most-recent)))) | |
77 | 79 | (when (or (null parent) (window-really-wants-input-p parent)) |
78 | 80 | (set-input-focus parent))))) |
79 | 81 |