Don't assume order of `get-buffer-window-list' results
It only guarantees that the first result *if* the buffer appears on the selected window.
This commit is contained in:
		
							parent
							
								
									11fecb5186
								
							
						
					
					
						commit
						633065ad55
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
					@ -306,7 +306,9 @@ selected by `other-buffer'."
 | 
				
			||||||
                ;; windows displaying an EXWM-buffer now displayed elsewhere; we
 | 
					                ;; windows displaying an EXWM-buffer now displayed elsewhere; we
 | 
				
			||||||
                ;; need to display with some other buffer there.
 | 
					                ;; need to display with some other buffer there.
 | 
				
			||||||
                (setq vacated-windows
 | 
					                (setq vacated-windows
 | 
				
			||||||
                      (append vacated-windows (cdr (get-buffer-window-list
 | 
					                      (append vacated-windows (remove
 | 
				
			||||||
 | 
					                                               window
 | 
				
			||||||
 | 
					                                               (get-buffer-window-list
 | 
				
			||||||
                                                (current-buffer) 'nomini t))))
 | 
					                                                (current-buffer) 'nomini t))))
 | 
				
			||||||
                ;; Note down when an EXWM-buffer is being covered by this
 | 
					                ;; Note down when an EXWM-buffer is being covered by this
 | 
				
			||||||
                ;; buffer; we don't want it to reappear in some vacated window.
 | 
					                ;; buffer; we don't want it to reappear in some vacated window.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue