mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Allow clicking view decorations to focus view
This commit is contained in:
		
							parent
							
								
									a19a511b90
								
							
						
					
					
						commit
						19d6cc395d
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -455,6 +455,16 @@ struct sway_container *container_at(struct sway_container *parent,
 | 
			
		|||
				*surface = _surface;
 | 
			
		||||
				return swayc;
 | 
			
		||||
			}
 | 
			
		||||
			// Check the view's decorations
 | 
			
		||||
			struct wlr_box swayc_box = {
 | 
			
		||||
				.x = swayc->x,
 | 
			
		||||
				.y = swayc->y,
 | 
			
		||||
				.width = swayc->width,
 | 
			
		||||
				.height = swayc->height,
 | 
			
		||||
			};
 | 
			
		||||
			if (wlr_box_contains_point(&swayc_box, ox, oy)) {
 | 
			
		||||
				return swayc;
 | 
			
		||||
			}
 | 
			
		||||
		} else {
 | 
			
		||||
			list_cat(queue, swayc->children);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue