mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	sway-ipc: includes current_mode for each output
This commit is contained in:
		
							parent
							
								
									6297b757b1
								
							
						
					
					
						commit
						d05aeb77a0
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -136,13 +136,18 @@ static void ipc_json_describe_output(struct sway_output *output,
 | 
			
		|||
			json_object_new_int(mode->width));
 | 
			
		||||
		json_object_object_add(mode_object, "height",
 | 
			
		||||
			json_object_new_int(mode->height));
 | 
			
		||||
		json_object_object_add(mode_object, "refresh",
 | 
			
		||||
			json_object_new_int(mode->refresh));
 | 
			
		||||
		json_object_array_add(modes_array, mode_object);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	json_object_object_add(object, "modes", modes_array);
 | 
			
		||||
 | 
			
		||||
	json_object *current_mode_object = json_object_new_object();
 | 
			
		||||
	json_object_object_add(current_mode_object, "width",
 | 
			
		||||
		json_object_new_int(wlr_output->width));
 | 
			
		||||
	json_object_object_add(current_mode_object, "height",
 | 
			
		||||
		json_object_new_int(wlr_output->height));
 | 
			
		||||
	json_object_object_add(object, "current_mode", current_mode_object);
 | 
			
		||||
 | 
			
		||||
	struct sway_node *parent = node_get_parent(&output->node);
 | 
			
		||||
	struct wlr_box parent_box = {0, 0, 0, 0};
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue