mirror of
				https://codeberg.org/dwl/dwl.git
				synced 2025-10-31 03:54:15 +00:00 
			
		
		
		
	chase wlroots scene-surface refactor
This commit is contained in:
		
							parent
							
								
									88a8b784d0
								
							
						
					
					
						commit
						283c043b5c
					
				
							
								
								
									
										5
									
								
								dwl.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								dwl.c
									
									
									
									
									
								
							| @ -2253,8 +2253,9 @@ xytonode(double x, double y, struct wlr_surface **psurface, | ||||
| 
 | ||||
| 	for (layer = focus_order; layer < END(focus_order); layer++) { | ||||
| 		if ((node = wlr_scene_node_at(layers[*layer], x, y, nx, ny))) { | ||||
| 			if (node->type == WLR_SCENE_NODE_SURFACE) | ||||
| 				surface = wlr_scene_surface_from_node(node)->surface; | ||||
| 			if (node->type == WLR_SCENE_NODE_BUFFER) | ||||
| 				surface = wlr_scene_surface_from_buffer( | ||||
| 						wlr_scene_buffer_from_node(node))->surface; | ||||
| 			/* Walk the tree to find a node that knows the client */ | ||||
| 			for (pnode = node; pnode && !c; pnode = pnode->parent) | ||||
| 				c = pnode->data; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Leonardo Hernández Hernández
						Leonardo Hernández Hernández