mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	sway/config.c: only reset primary_selection at launch
Otherwise, an error will be shown whenever reloading due to the value of
primary_selection being reset to true.
(cherry picked from commit 6b2aa83246)
			
			
This commit is contained in:
		
							parent
							
								
									ff67f5f352
								
							
						
					
					
						commit
						1c07868f2f
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -475,6 +475,11 @@ bool load_main_config(const char *file, bool is_active, bool validating) {
 | 
			
		|||
				old_config->xwayland ? "enabled" : "disabled");
 | 
			
		||||
		config->xwayland = old_config->xwayland;
 | 
			
		||||
 | 
			
		||||
		// primary_selection can only be enabled/disabled at launch
 | 
			
		||||
		sway_log(SWAY_DEBUG, "primary_selection will remain %s",
 | 
			
		||||
				old_config->primary_selection ? "enabled" : "disabled");
 | 
			
		||||
		config->primary_selection = old_config->primary_selection;
 | 
			
		||||
 | 
			
		||||
		if (!config->validating) {
 | 
			
		||||
			if (old_config->swaybg_client != NULL) {
 | 
			
		||||
				wl_client_destroy(old_config->swaybg_client);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue