mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Don't crash when there's no primary surface.
This commit is contained in:
		
							parent
							
								
									6c9c8f8923
								
							
						
					
					
						commit
						1febe01084
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1014,7 +1014,7 @@ notify_key(struct wlsc_input_device *device,
 | 
			
		|||
	case KEY_LEFTMETA | META_DOWN:
 | 
			
		||||
	case KEY_RIGHTMETA | META_DOWN:
 | 
			
		||||
		ec->meta_state = state ? META_DOWN : 0;
 | 
			
		||||
		if (state == 0) {
 | 
			
		||||
		if (state == 0 && ec->primary != NULL) {
 | 
			
		||||
			ec->primary->target.z = 0;
 | 
			
		||||
			wl_list_remove(&ec->primary->animate.link);
 | 
			
		||||
			wl_list_insert(&ec->animate_list,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue