mirror of
				https://github.com/labwc/labwc.git
				synced 2025-11-03 09:01:51 -05:00 
			
		
		
		
	src/overlay.c: clean up timer on exit
This commit is contained in:
		
							parent
							
								
									63da13a62b
								
							
						
					
					
						commit
						a4d1fcfef2
					
				
					 3 changed files with 15 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -260,3 +260,12 @@ overlay_hide(struct seat *seat)
 | 
			
		|||
			&server->scene->tree);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
overlay_finish(struct seat *seat)
 | 
			
		||||
{
 | 
			
		||||
	if (seat->overlay.timer) {
 | 
			
		||||
		wl_event_source_remove(seat->overlay.timer);
 | 
			
		||||
		seat->overlay.timer = NULL;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -598,6 +598,7 @@ seat_finish(struct server *server)
 | 
			
		|||
		wl_event_source_remove(seat->workspace_osd_timer);
 | 
			
		||||
		seat->workspace_osd_timer = NULL;
 | 
			
		||||
	}
 | 
			
		||||
	overlay_finish(seat);
 | 
			
		||||
 | 
			
		||||
	input_handlers_finish(seat);
 | 
			
		||||
	input_method_relay_finish(seat->input_method_relay);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue