mirror of
				https://gitlab.freedesktop.org/wayland/wayland.git
				synced 2025-11-03 09:01:42 -05:00 
			
		
		
		
	Don't special case object ID 1 lookup
This commit is contained in:
		
							parent
							
								
									2b6f3cd2b8
								
							
						
					
					
						commit
						990809c063
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		| 
						 | 
					@ -410,9 +410,6 @@ handle_event(struct wl_display *display,
 | 
				
			||||||
	const struct wl_message *message;
 | 
						const struct wl_message *message;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wl_connection_copy(display->connection, p, size);
 | 
						wl_connection_copy(display->connection, p, size);
 | 
				
			||||||
	if (id == 1)
 | 
					 | 
				
			||||||
		proxy = &display->proxy;
 | 
					 | 
				
			||||||
	else
 | 
					 | 
				
			||||||
	proxy = wl_map_lookup(&display->objects, id);
 | 
						proxy = wl_map_lookup(&display->objects, id);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (proxy == NULL || proxy->object.implementation == NULL) {
 | 
						if (proxy == NULL || proxy->object.implementation == NULL) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue