mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Add xwayland views to focused container
This commit is contained in:
		
							parent
							
								
									1592543fd6
								
							
						
					
					
						commit
						a5e457d59a
					
				
					 1 changed files with 3 additions and 5 deletions
				
			
		| 
						 | 
					@ -154,12 +154,10 @@ static void handle_map_notify(struct wl_listener *listener, void *data) {
 | 
				
			||||||
		struct sway_view *view = sway_surface->view;
 | 
							struct sway_view *view = sway_surface->view;
 | 
				
			||||||
		container_view_destroy(view->swayc);
 | 
							container_view_destroy(view->swayc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		struct sway_container *parent = root_container.children->items[0];
 | 
							struct sway_seat *seat = input_manager_current_seat(input_manager);
 | 
				
			||||||
		parent = parent->children->items[0]; // workspace
 | 
							struct sway_container *focus = sway_seat_get_focus_inactive(seat, &root_container);
 | 
				
			||||||
 | 
							struct sway_container *cont = container_view_create(focus, view);
 | 
				
			||||||
		struct sway_container *cont = container_view_create(parent, view);
 | 
					 | 
				
			||||||
		view->swayc = cont;
 | 
							view->swayc = cont;
 | 
				
			||||||
 | 
					 | 
				
			||||||
		arrange_windows(cont->parent, -1, -1);
 | 
							arrange_windows(cont->parent, -1, -1);
 | 
				
			||||||
		sway_input_manager_set_focus(input_manager, cont);
 | 
							sway_input_manager_set_focus(input_manager, cont);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue