mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Reverse loop in view_at
Looks for the top-most view now.
This commit is contained in:
		
							parent
							
								
									bfb6914cdf
								
							
						
					
					
						commit
						a471ed3ed0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -86,7 +86,7 @@ static struct wlr_subsurface *subsurface_at(struct wlr_surface *surface,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct roots_view *view_at(struct roots_desktop *desktop, double lx, double ly,
 | 
					struct roots_view *view_at(struct roots_desktop *desktop, double lx, double ly,
 | 
				
			||||||
		struct wlr_surface **surface, double *sx, double *sy) {
 | 
							struct wlr_surface **surface, double *sx, double *sy) {
 | 
				
			||||||
	for (size_t i = 0; i < desktop->views->length; ++i) {
 | 
						for (int i = desktop->views->length - 1; i >= 0; --i) {
 | 
				
			||||||
		struct roots_view *view = desktop->views->items[i];
 | 
							struct roots_view *view = desktop->views->items[i];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		double view_sx = lx - view->x;
 | 
							double view_sx = lx - view->x;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue