mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	fixed formatting
This commit is contained in:
		
							parent
							
								
									f26ed32e46
								
							
						
					
					
						commit
						6ab968e63e
					
				
					 1 changed files with 13 additions and 13 deletions
				
			
		
							
								
								
									
										26
									
								
								sway/ipc.c
									
										
									
									
									
								
							
							
						
						
									
										26
									
								
								sway/ipc.c
									
										
									
									
									
								
							| 
						 | 
					@ -183,19 +183,19 @@ void ipc_client_handle_command(struct ipc_client *client) {
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	switch (client->current_command) {
 | 
						switch (client->current_command) {
 | 
				
			||||||
		case IPC_COMMAND:
 | 
						case IPC_COMMAND:
 | 
				
			||||||
		{
 | 
						{
 | 
				
			||||||
			buf[client->payload_length] = '\0';
 | 
							buf[client->payload_length] = '\0';
 | 
				
			||||||
			bool success = handle_command(config, buf);
 | 
							bool success = handle_command(config, buf);
 | 
				
			||||||
			char reply[64];
 | 
							char reply[64];
 | 
				
			||||||
			int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
 | 
							int length = snprintf(reply, sizeof(reply), "{\"success\":%s}", success ? "true" : "false");
 | 
				
			||||||
			ipc_send_reply(client, reply, (uint32_t) length);
 | 
							ipc_send_reply(client, reply, (uint32_t) length);
 | 
				
			||||||
			break;
 | 
							break;
 | 
				
			||||||
		}
 | 
						}
 | 
				
			||||||
		default:
 | 
						default:
 | 
				
			||||||
			sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
 | 
							sway_log(L_INFO, "Unknown IPC command type %i", client->current_command);
 | 
				
			||||||
			ipc_client_disconnect(client);
 | 
							ipc_client_disconnect(client);
 | 
				
			||||||
			break;
 | 
							break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	client->payload_length = 0;
 | 
						client->payload_length = 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue