mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	fix sending window new event
This commit is contained in:
		
							parent
							
								
									3e61718053
								
							
						
					
					
						commit
						cfd806577b
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -51,13 +51,13 @@ const char *container_type_to_str(enum sway_container_type type) {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void container_create_notify(struct sway_container *container) {
 | 
					void container_create_notify(struct sway_container *container) {
 | 
				
			||||||
	if (container->type != C_VIEW || container->type != C_CONTAINER) {
 | 
					 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	// TODO send ipc event type based on the container type
 | 
						// TODO send ipc event type based on the container type
 | 
				
			||||||
	wl_signal_emit(&root_container.sway_root->events.new_container, container);
 | 
						wl_signal_emit(&root_container.sway_root->events.new_container, container);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (container->type == C_VIEW || container->type == C_CONTAINER) {
 | 
				
			||||||
		ipc_event_window(container, "new");
 | 
							ipc_event_window(container, "new");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void container_close_notify(struct sway_container *container) {
 | 
					static void container_close_notify(struct sway_container *container) {
 | 
				
			||||||
	if (container == NULL) {
 | 
						if (container == NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue