Add check for windows being #f.
This commit is contained in:
		
							parent
							
								
									43866aff9e
								
							
						
					
					
						commit
						91754f0b95
					
				| 
						 | 
				
			
			@ -295,8 +295,11 @@
 | 
			
		|||
	      (window-path dpy p)))))
 | 
			
		||||
 | 
			
		||||
(define (window-viewable? dpy window)
 | 
			
		||||
  (eq? (window-attribute:map-state (get-window-attributes dpy window))
 | 
			
		||||
       (map-state is-viewable)))
 | 
			
		||||
  (and window
 | 
			
		||||
       (let ((attrs (get-window-attributes dpy window)))
 | 
			
		||||
         (and attrs
 | 
			
		||||
              (eq? (window-attribute:map-state attrs)
 | 
			
		||||
                   (map-state is-viewable))))))
 | 
			
		||||
 | 
			
		||||
(define (window-mapped? dpy window)
 | 
			
		||||
  (and window
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue