- added possibility to select the manager that contains the current one;
default key is 'M-Home'.
This commit is contained in:
		
							parent
							
								
									ace0a03116
								
							
						
					
					
						commit
						ee9621eb66
					
				| 
						 | 
					@ -24,6 +24,7 @@
 | 
				
			||||||
  (kill-client keys "M-c")
 | 
					  (kill-client keys "M-c")
 | 
				
			||||||
  (user-bindings binding-list '(("F2" exec "xterm")))
 | 
					  (user-bindings binding-list '(("F2" exec "xterm")))
 | 
				
			||||||
  (save-layout keys "F11")
 | 
					  (save-layout keys "F11")
 | 
				
			||||||
 | 
					  (select-outer-manager keys "M-Home")
 | 
				
			||||||
  )
 | 
					  )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define-record-type root-wm :root-wm
 | 
					(define-record-type root-wm :root-wm
 | 
				
			||||||
| 
						 | 
					@ -70,7 +71,8 @@
 | 
				
			||||||
		execute attach quit
 | 
							execute attach quit
 | 
				
			||||||
		create-workspace
 | 
							create-workspace
 | 
				
			||||||
		save-layout
 | 
							save-layout
 | 
				
			||||||
		kill-client))
 | 
							kill-client
 | 
				
			||||||
 | 
							select-outer-manager))
 | 
				
			||||||
    (for-each (lambda (binding)
 | 
					    (for-each (lambda (binding)
 | 
				
			||||||
		(grab-shortcut dpy window (car binding) (cons 'binding binding)
 | 
							(grab-shortcut dpy window (car binding) (cons 'binding binding)
 | 
				
			||||||
			       in-channel #t))
 | 
								       in-channel #t))
 | 
				
			||||||
| 
						 | 
					@ -288,6 +290,18 @@
 | 
				
			||||||
		  (not (test window)))
 | 
							  (not (test window)))
 | 
				
			||||||
	     (loop (window-parent dpy 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)
 | 
					    ((manager-focused)
 | 
				
			||||||
     (let ((manager (second msg)))
 | 
					     (let ((manager (second msg)))
 | 
				
			||||||
       ;; a split-wm should never be the current manager and the
 | 
					       ;; a split-wm should never be the current manager and the
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue