• 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

Revision6210be4d586f592927e8a2d32fb396ca3461a100 (tree)
Time2012-04-13 03:32:10
AuthorChristopher Roy Bratusek <nano@tuxf...>
CommiterChristopher Roy Bratusek

Log Message

some fixup in tabgroup [fuchur]

Change Summary

Incremental Difference

--- a/lisp/sawfish/wm/tabs/tabgroup.jl
+++ b/lisp/sawfish/wm/tabs/tabgroup.jl
@@ -56,7 +56,7 @@
5656 (define oldgroup nil)
5757 (define tab-groups nil)
5858 (define tab-refresh-lock t)
59- (define release-window nil)
59+ (define release-window t)
6060 (define last-unmap-id nil)
6161 (define in-tab-group-name nil)
6262
@@ -139,8 +139,9 @@
139139
140140 (define (tab-delete-window-from-tab-groups w)
141141 "Find window's group and remove it."
142- (if (not release-window)
142+ (if release-window
143143 (remove-from-tab-group w))
144+ (setq release-window t)
144145 (when (window-tabbed-p w)
145146 (tab-delete-window-from-group w (tab-window-group-index w))
146147 (window-put w 'fixed-position nil)
@@ -278,48 +279,51 @@ sticky, unsticky, fixed-position."
278279 (when (not (eq index index2))
279280 ;; tabgroup to tabgroup
280281 (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))
284284 (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)))))))
317322
318323 (define (tab-release-window w)
319324 "Release the window from its group."
320- (setq release-window t)
321- (tab-delete-window-from-tab-groups w)
322325 (setq release-window nil)
326+ (tab-delete-window-from-tab-groups w)
323327 (tab-make-new-group w))
324328
325329 (define-command 'tab-release-window tab-release-window #:spec "%f")