mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	libinput: remove useless get_context call
That function is literally just "return event->device->seat->libinput" We do not use context, so do not fetch it.
This commit is contained in:
		
							parent
							
								
									60d1131df2
								
							
						
					
					
						commit
						701e147b9b
					
				
					 1 changed files with 0 additions and 2 deletions
				
			
		| 
						 | 
					@ -134,10 +134,8 @@ static void handle_device_removed(struct wlr_libinput_backend *backend,
 | 
				
			||||||
void wlr_libinput_event(struct wlr_libinput_backend *backend,
 | 
					void wlr_libinput_event(struct wlr_libinput_backend *backend,
 | 
				
			||||||
		struct libinput_event *event) {
 | 
							struct libinput_event *event) {
 | 
				
			||||||
	assert(backend && event);
 | 
						assert(backend && event);
 | 
				
			||||||
	struct libinput *context = libinput_event_get_context(event);
 | 
					 | 
				
			||||||
	struct libinput_device *device = libinput_event_get_device(event);
 | 
						struct libinput_device *device = libinput_event_get_device(event);
 | 
				
			||||||
	enum libinput_event_type event_type = libinput_event_get_type(event);
 | 
						enum libinput_event_type event_type = libinput_event_get_type(event);
 | 
				
			||||||
	(void)context;
 | 
					 | 
				
			||||||
	switch (event_type) {
 | 
						switch (event_type) {
 | 
				
			||||||
	case LIBINPUT_EVENT_DEVICE_ADDED:
 | 
						case LIBINPUT_EVENT_DEVICE_ADDED:
 | 
				
			||||||
		handle_device_added(backend, device);
 | 
							handle_device_added(backend, device);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue