Japanese translation of message catalog for Sawfish Window-Manager
Revision | 6210be4d586f592927e8a2d32fb396ca3461a100 (tree) |
---|---|
Time | 2012-04-13 03:32:10 |
Author | Christopher Roy Bratusek <nano@tuxf...> |
Commiter | Christopher Roy Bratusek |
some fixup in tabgroup [fuchur]
@@ -56,7 +56,7 @@ | ||
56 | 56 | (define oldgroup nil) |
57 | 57 | (define tab-groups nil) |
58 | 58 | (define tab-refresh-lock t) |
59 | - (define release-window nil) | |
59 | + (define release-window t) | |
60 | 60 | (define last-unmap-id nil) |
61 | 61 | (define in-tab-group-name nil) |
62 | 62 |
@@ -139,8 +139,9 @@ | ||
139 | 139 | |
140 | 140 | (define (tab-delete-window-from-tab-groups w) |
141 | 141 | "Find window's group and remove it." |
142 | - (if (not release-window) | |
142 | + (if release-window | |
143 | 143 | (remove-from-tab-group w)) |
144 | + (setq release-window t) | |
144 | 145 | (when (window-tabbed-p w) |
145 | 146 | (tab-delete-window-from-group w (tab-window-group-index w)) |
146 | 147 | (window-put w 'fixed-position nil) |
@@ -278,48 +279,51 @@ sticky, unsticky, fixed-position." | ||
278 | 279 | (when (not (eq index index2)) |
279 | 280 | ;; tabgroup to tabgroup |
280 | 281 | (when (window-tabbed-p w) |
281 | - (setq release-window t) | |
282 | - (tab-delete-window-from-tab-groups w) | |
283 | - (setq release-window nil)) | |
282 | + (setq release-window nil) | |
283 | + (tab-delete-window-from-tab-groups w)) | |
284 | 284 | (if (window-get win 'iconified) (uniconify-window win)) |
285 | - (if (window-get win 'shaded) (unshade-window win)) | |
286 | - (setq tab-refresh-lock nil) | |
287 | - (if (window-get w 'iconified) (uniconify-window w)) | |
288 | - (if (window-get w 'shaded) (unshade-window w)) | |
289 | - (window-put w 'frame-style group-frame-style) | |
290 | - (window-put w 'type group-frame-type) | |
291 | - (window-put w 'focus-mode group-frame-focus-mode) | |
292 | - (window-put w 'gravity group-frame-gravity) | |
293 | - (window-put w 'title-position group-frame-title-position) | |
294 | - (window-put w 'sticky group-frame-sticky) | |
295 | - (window-put w 'sticky-viewport group-frame-sticky-viewport) | |
296 | - (window-put w 'never-iconify group-frame-never-iconify) | |
297 | - (window-put w 'depth group-frame-depth) | |
298 | - (window-put w 'fixed-position group-frame-fixed-position) | |
299 | - (window-put w 'never-maximize group-frame-never-maximize) | |
300 | - (window-put w 'maximized-vertically group-frame-maximized-vertically) | |
301 | - (window-put w 'maximized-horizontally group-frame-maximized-horizontally) | |
302 | - (window-put w 'maximized-fullscreen group-frame-maximized-fullscreen) | |
303 | - (window-put w 'unmaximized-type group-frame-unmaximized-type) | |
304 | - (window-put w 'unmaximized-geometry group-frame-unmaximized-geometry) | |
305 | - ;; reframe w here, tab-refresh-group expectet | |
306 | - ;; the same frame for w and win | |
307 | - (reframe-window w) | |
308 | - (tab-put-window-in-group w index) | |
309 | - (tab-delete-window-from-group w index2) | |
310 | - (resize-window-to w (car dim) (cdr dim)) | |
311 | - (move-window-to w (car pos) (cdr pos)) | |
312 | - (setq tab-refresh-lock t) | |
313 | - (tab-refresh-group w 'frame) | |
314 | - (set-input-focus w) | |
315 | - (if (not (window-tabbed-p win)) (window-put win 'tabbed t)) | |
316 | - (window-put w 'tabbed t))))) | |
285 | + (let ((group-frame-to-workspaces (car (window-workspaces win)))) | |
286 | + (if (window-get win 'shaded) (unshade-window win)) | |
287 | + (setq tab-refresh-lock nil) | |
288 | + (if (window-get w 'iconified) (uniconify-window w)) | |
289 | + (let ((group-frame-from-workspaces (car (window-workspaces w)))) | |
290 | + (if (window-get w 'shaded) (unshade-window w)) | |
291 | + (window-put w 'frame-style group-frame-style) | |
292 | + (window-put w 'type group-frame-type) | |
293 | + (window-put w 'focus-mode group-frame-focus-mode) | |
294 | + (window-put w 'gravity group-frame-gravity) | |
295 | + (window-put w 'title-position group-frame-title-position) | |
296 | + (window-put w 'sticky group-frame-sticky) | |
297 | + (window-put w 'sticky-viewport group-frame-sticky-viewport) | |
298 | + (window-put w 'never-iconify group-frame-never-iconify) | |
299 | + (window-put w 'depth group-frame-depth) | |
300 | + (window-put w 'fixed-position group-frame-fixed-position) | |
301 | + (window-put w 'never-maximize group-frame-never-maximize) | |
302 | + (window-put w 'maximized-vertically group-frame-maximized-vertically) | |
303 | + (window-put w 'maximized-horizontally group-frame-maximized-horizontally) | |
304 | + (window-put w 'maximized-fullscreen group-frame-maximized-fullscreen) | |
305 | + (window-put w 'unmaximized-type group-frame-unmaximized-type) | |
306 | + (window-put w 'unmaximized-geometry group-frame-unmaximized-geometry) | |
307 | + ;; reframe w here, tab-refresh-group expectet | |
308 | + ;; the same frame for w and win | |
309 | + (reframe-window w) | |
310 | + (tab-put-window-in-group w index) | |
311 | + (tab-delete-window-from-group w index2) | |
312 | + (resize-window-to w (car dim) (cdr dim)) | |
313 | + (move-window-to w (car pos) (cdr pos)) | |
314 | + (when (and group-frame-to-workspaces group-frame-from-workspaces | |
315 | + (not (eq group-frame-to-workspaces group-frame-from-workspaces))) | |
316 | + (move-window-to-workspace w group-frame-from-workspaces group-frame-to-workspaces)) | |
317 | + (setq tab-refresh-lock t) | |
318 | + (tab-refresh-group w 'frame) | |
319 | + (set-input-focus w) | |
320 | + (if (not (window-tabbed-p win)) (window-put win 'tabbed t)) | |
321 | + (window-put w 'tabbed t))))))) | |
317 | 322 | |
318 | 323 | (define (tab-release-window w) |
319 | 324 | "Release the window from its group." |
320 | - (setq release-window t) | |
321 | - (tab-delete-window-from-tab-groups w) | |
322 | 325 | (setq release-window nil) |
326 | + (tab-delete-window-from-tab-groups w) | |
323 | 327 | (tab-make-new-group w)) |
324 | 328 | |
325 | 329 | (define-command 'tab-release-window tab-release-window #:spec "%f") |