mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #1677 from emersion/maximize-xwayland-views
Maximize xwayland views by default
This commit is contained in:
		
						commit
						a1e7ffd857
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -143,8 +143,11 @@ static void handle_map(struct wl_listener *listener, void *data) {
 | 
			
		|||
		struct sway_view *view = sway_surface->view;
 | 
			
		||||
		container_view_destroy(view->swayc);
 | 
			
		||||
 | 
			
		||||
		wlr_xwayland_surface_set_maximized(xsurface, true);
 | 
			
		||||
 | 
			
		||||
		struct sway_seat *seat = input_manager_current_seat(input_manager);
 | 
			
		||||
		struct sway_container *focus = sway_seat_get_focus_inactive(seat, &root_container);
 | 
			
		||||
		struct sway_container *focus = sway_seat_get_focus_inactive(seat,
 | 
			
		||||
			&root_container);
 | 
			
		||||
		struct sway_container *cont = container_view_create(focus, view);
 | 
			
		||||
		view->swayc = cont;
 | 
			
		||||
		arrange_windows(cont->parent, -1, -1);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue