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)
 | 
					(define (add-last-focused-client! wm data client)
 | 
				
			||||||
  (let ((p (data:last-focused data)))
 | 
					  (let ((p (data:last-focused data)))
 | 
				
			||||||
    (set-cdr! p (car p))
 | 
					    (if (not (eq? client (car p)))
 | 
				
			||||||
    (set-car! p client)))
 | 
					        (begin
 | 
				
			||||||
 | 
					          (set-cdr! p (car p))
 | 
				
			||||||
 | 
					          (set-car! p client)))))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
(define (init-switch-wm wm channel)
 | 
					(define (init-switch-wm wm channel)
 | 
				
			||||||
  (let* ((dpy (wm:dpy wm))
 | 
					  (let* ((dpy (wm:dpy wm))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue