mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	ipc: always include nodes in views
This is for i3 (and i3ipc library) compatability.
This commit is contained in:
		
							parent
							
								
									76e5dffeaa
								
							
						
					
					
						commit
						50901a0892
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -204,7 +204,8 @@ static void ipc_json_describe_view(swayc_t *c, json_object *object) {
 | 
				
			||||||
		c->is_floating ? "auto_on" : "auto_off")); // we can't state the cause
 | 
							c->is_floating ? "auto_on" : "auto_off")); // we can't state the cause
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	json_object_object_add(object, "app_id", c->app_id ? json_object_new_string(c->app_id) : NULL);
 | 
						json_object_object_add(object, "app_id", c->app_id ? json_object_new_string(c->app_id) : NULL);
 | 
				
			||||||
	// we do not include children, floating etc. as views have none
 | 
						json_object_object_add(object, "nodes", json_object_new_array());
 | 
				
			||||||
 | 
						json_object_object_add(object, "floating_nodes", json_object_new_array());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
json_object *ipc_json_describe_container(swayc_t *c) {
 | 
					json_object *ipc_json_describe_container(swayc_t *c) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue