mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #3597 from dnkl/fix-inverted-bitmask-check-in-ipc-has-event-listeners
ipc_has_event_listeners: fix inverted check of subscribed_events
This commit is contained in:
		
						commit
						cdfc719494
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -264,7 +264,7 @@ int ipc_client_handle_readable(int client_fd, uint32_t mask, void *data) {
 | 
			
		|||
static bool ipc_has_event_listeners(enum ipc_command_type event) {
 | 
			
		||||
	for (int i = 0; i < ipc_client_list->length; i++) {
 | 
			
		||||
		struct ipc_client *client = ipc_client_list->items[i];
 | 
			
		||||
		if ((client->subscribed_events & event_mask(event)) == 0) {
 | 
			
		||||
		if ((client->subscribed_events & event_mask(event)) != 0) {
 | 
			
		||||
			return true;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue