mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	output: avoid calling wlr_xdg_surface_get_geometry()
Try to only call wlr_xdg_surface_get_geometry() in .commit and .map
This commit is contained in:
		
							parent
							
								
									afaf78aa72
								
							
						
					
					
						commit
						17f7ef53be
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -25,9 +25,10 @@ static void render_cycle_box(struct output *output)
 | 
				
			||||||
		    !rc.client_side_decorations) {
 | 
							    !rc.client_side_decorations) {
 | 
				
			||||||
			box = deco_max_extents(view);
 | 
								box = deco_max_extents(view);
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			box = view_get_surface_geometry(view);
 | 
								box.x = view->x;
 | 
				
			||||||
			box.x += view->x;
 | 
								box.y = view->y;
 | 
				
			||||||
			box.y += view->y;
 | 
								box.width = view->w;
 | 
				
			||||||
 | 
								box.height = view->h;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		float cycle_color[] = { 0.0, 0.0, 0.0, 0.2 };
 | 
							float cycle_color[] = { 0.0, 0.0, 0.0, 0.2 };
 | 
				
			||||||
		wlr_render_rect(output->server->renderer, &box, cycle_color,
 | 
							wlr_render_rect(output->server->renderer, &box, cycle_color,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue