fixed refocusing of the last focused client (add-last-focused-client!)
This commit is contained in:
		
							parent
							
								
									ac9cce3473
								
							
						
					
					
						commit
						f998ae533e
					
				| 
						 | 
				
			
			@ -32,8 +32,10 @@
 | 
			
		|||
 | 
			
		||||
(define (add-last-focused-client! wm data client)
 | 
			
		||||
  (let ((p (data:last-focused data)))
 | 
			
		||||
    (set-cdr! p (car p))
 | 
			
		||||
    (set-car! p client)))
 | 
			
		||||
    (if (not (eq? client (car p)))
 | 
			
		||||
        (begin
 | 
			
		||||
          (set-cdr! p (car p))
 | 
			
		||||
          (set-car! p client)))))
 | 
			
		||||
 | 
			
		||||
(define (init-switch-wm wm channel)
 | 
			
		||||
  (let* ((dpy (wm:dpy wm))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue