mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Animate overlay on/off.
This commit is contained in:
		
							parent
							
								
									cddc0ad502
								
							
						
					
					
						commit
						9af92b380c
					
				
					 2 changed files with 38 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -133,6 +133,7 @@ wl_event_loop_wait(struct wl_event_loop *loop)
 | 
			
		|||
{
 | 
			
		||||
	struct epoll_event ep[32];
 | 
			
		||||
	struct wl_event_source *source;
 | 
			
		||||
	wl_event_loop_idle_func_t idle_func;
 | 
			
		||||
	int i, count, timeout;
 | 
			
		||||
	uint32_t mask;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -157,8 +158,9 @@ wl_event_loop_wait(struct wl_event_loop *loop)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if (count == 0 && loop->idle_func != NULL) {
 | 
			
		||||
		loop->idle_func(loop->idle_data);
 | 
			
		||||
		idle_func = loop->idle_func;
 | 
			
		||||
		loop->idle_func = NULL;
 | 
			
		||||
		idle_func(loop->idle_data);
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	return 0;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue