mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Only defer seat attachment during initial startup
Deferred commands are only run once, during sway startup. This means
that deferring seat attachment based on whether we are reading the
config prevents devices from being reattached to the correct seat during
a config reload. Instead, only defer if the config is not yet active.
Fixes #6048.
(cherry picked from commit cad6e59b93)
			
			
This commit is contained in:
		
							parent
							
								
									f49356ebf0
								
							
						
					
					
						commit
						ae55861548
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -12,7 +12,7 @@ struct cmd_results *seat_cmd_attach(int argc, char **argv) {
 | 
				
			||||||
	if (!config->handler_context.seat_config) {
 | 
						if (!config->handler_context.seat_config) {
 | 
				
			||||||
		return cmd_results_new(CMD_FAILURE, "No seat defined");
 | 
							return cmd_results_new(CMD_FAILURE, "No seat defined");
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (config->reading) {
 | 
						if (!config->active) {
 | 
				
			||||||
		return cmd_results_new(CMD_DEFER, NULL);
 | 
							return cmd_results_new(CMD_DEFER, NULL);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue