mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Only center toplevel xdg shell views
This commit is contained in:
		
							parent
							
								
									518ef46ef2
								
							
						
					
					
						commit
						b72da6cc44
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -72,7 +72,8 @@ static void handle_commit(struct wl_listener *listener, void *data) {
 | 
				
			||||||
		wl_container_of(listener, roots_xdg_surface, commit);
 | 
							wl_container_of(listener, roots_xdg_surface, commit);
 | 
				
			||||||
	struct roots_view *view = roots_xdg_surface->view;
 | 
						struct roots_view *view = roots_xdg_surface->view;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (!roots_xdg_surface->initialized) {
 | 
						if (view->xdg_surface_v6->role == WLR_XDG_SURFACE_V6_ROLE_TOPLEVEL &&
 | 
				
			||||||
 | 
								!roots_xdg_surface->initialized) {
 | 
				
			||||||
		roots_xdg_surface->initialized = view_initialize(view);
 | 
							roots_xdg_surface->initialized = view_initialize(view);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue