- added possibility to select the manager that contains the current one;

default key is 'M-Home'.
This commit is contained in:
frese 2004-02-20 15:08:15 +00:00
parent ace0a03116
commit ee9621eb66
1 changed files with 15 additions and 1 deletions

View File

@ -24,6 +24,7 @@
(kill-client keys "M-c")
(user-bindings binding-list '(("F2" exec "xterm")))
(save-layout keys "F11")
(select-outer-manager keys "M-Home")
)
(define-record-type root-wm :root-wm
@ -70,7 +71,8 @@
execute attach quit
create-workspace
save-layout
kill-client))
kill-client
select-outer-manager))
(for-each (lambda (binding)
(grab-shortcut dpy window (car binding) (cons 'binding binding)
in-channel #t))
@ -288,6 +290,18 @@
(not (test window)))
(loop (window-parent dpy window))))))
((select-outer-manager)
(let ((time (second msg))
(current (root-wm:current-manager root-wm))
(dpy (root-wm:dpy root-wm)))
(if current
(let ((outer (manager-of-window
root-wm
(window-parent dpy (wm:window current)))))
(if outer
(set-input-focus dpy (wm:window outer)
(revert-to parent) time))))))
((manager-focused)
(let ((manager (second msg)))
;; a split-wm should never be the current manager and the