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