mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Initialize server so input manager is available.
This commit is contained in:
		
							parent
							
								
									1fde9a9355
								
							
						
					
					
						commit
						e1b8190d2c
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		
							
								
								
									
										12
									
								
								sway/main.c
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								sway/main.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -318,12 +318,6 @@ int main(int argc, char **argv) {
 | 
			
		|||
	detect_proprietary(allow_unsupported_gpu);
 | 
			
		||||
	detect_raspi();
 | 
			
		||||
 | 
			
		||||
	if (validate) {
 | 
			
		||||
		bool valid = load_main_config(config_path, false, true);
 | 
			
		||||
		free(config_path);
 | 
			
		||||
		return valid ? 0 : 1;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (optind < argc) { // Behave as IPC client
 | 
			
		||||
		if (optind != 1) {
 | 
			
		||||
			sway_log(SWAY_ERROR, "Don't use options with the IPC client");
 | 
			
		||||
| 
						 | 
				
			
			@ -365,6 +359,12 @@ int main(int argc, char **argv) {
 | 
			
		|||
		return 1;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (validate) {
 | 
			
		||||
		bool valid = load_main_config(config_path, false, true);
 | 
			
		||||
		free(config_path);
 | 
			
		||||
		return valid ? 0 : 1;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ipc_init(&server);
 | 
			
		||||
 | 
			
		||||
	setenv("WAYLAND_DISPLAY", server.socket, true);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue