mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	moved ipc_init above config file processing.
This is necessary because commands in the config file (mode for instance) emit ipc events, and if ipc_init has not been called the ipc_clients_list is not initialized, and we segfault. This fixes that bug.
This commit is contained in:
		
							parent
							
								
									79d2b0dee4
								
							
						
					
					
						commit
						153620aefe
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -213,6 +213,8 @@ int main(int argc, char **argv) {
 | 
			
		|||
 | 
			
		||||
	init_layout();
 | 
			
		||||
 | 
			
		||||
	ipc_init();
 | 
			
		||||
 | 
			
		||||
	if (validate) {
 | 
			
		||||
		bool valid = load_main_config(config_path, false);
 | 
			
		||||
		return valid ? 0 : 1;
 | 
			
		||||
| 
						 | 
				
			
			@ -226,8 +228,6 @@ int main(int argc, char **argv) {
 | 
			
		|||
		free(config_path);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ipc_init();
 | 
			
		||||
 | 
			
		||||
	if (!terminate_request) {
 | 
			
		||||
		wlc_run();
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue