mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	tray: use correct parameter to set bus slot to floating
Counter-intuitively, `sd_bus_slot_set_floating` expects 0 to set it to floating.
This commit is contained in:
		
							parent
							
								
									47abc45e86
								
							
						
					
					
						commit
						1a46da7fcf
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -189,9 +189,9 @@ bool init_host(struct swaybar_host *host, char *protocol,
 | 
			
		|||
		goto error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	sd_bus_slot_set_floating(reg_slot, 1);
 | 
			
		||||
	sd_bus_slot_set_floating(unreg_slot, 1);
 | 
			
		||||
	sd_bus_slot_set_floating(watcher_slot, 1);
 | 
			
		||||
	sd_bus_slot_set_floating(reg_slot, 0);
 | 
			
		||||
	sd_bus_slot_set_floating(unreg_slot, 0);
 | 
			
		||||
	sd_bus_slot_set_floating(watcher_slot, 0);
 | 
			
		||||
 | 
			
		||||
	sway_log(SWAY_DEBUG, "Registered %s", host->service);
 | 
			
		||||
	return true;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue