mirror of
				https://codeberg.org/dwl/dwl-patches.git
				synced 2025-10-28 02:34:22 +00:00 
			
		
		
		
	revive naturalscrolltrackpad.patch
This commit is contained in:
		
							parent
							
								
									375178be4f
								
							
						
					
					
						commit
						4f9b710720
					
				
							
								
								
									
										31
									
								
								naturalscrolltrackpad/naturalscrolltrackpad.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								naturalscrolltrackpad/naturalscrolltrackpad.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,31 @@ | |||||||
|  | From e6d6c4fb6a55baffe15ad9127901feb1e4d8a9df Mon Sep 17 00:00:00 2001 | ||||||
|  | From: neuromagus <neuromagus@mail.ru> | ||||||
|  | Date: Sun, 7 Jan 2024 02:17:55 +0300 | ||||||
|  | Subject: [PATCH] added naturalscrolltrackpad patch | ||||||
|  | 
 | ||||||
|  | ---
 | ||||||
|  |  dwl.c | 8 +++----- | ||||||
|  |  1 file changed, 3 insertions(+), 5 deletions(-) | ||||||
|  | 
 | ||||||
|  | diff --git a/dwl.c b/dwl.c
 | ||||||
|  | index 4d19357..1b747c3 100644
 | ||||||
|  | --- a/dwl.c
 | ||||||
|  | +++ b/dwl.c
 | ||||||
|  | @@ -974,11 +974,9 @@ createpointer(struct wlr_pointer *pointer)
 | ||||||
|  |  			libinput_device_config_tap_set_drag_enabled(device, tap_and_drag); | ||||||
|  |  			libinput_device_config_tap_set_drag_lock_enabled(device, drag_lock); | ||||||
|  |  			libinput_device_config_tap_set_button_map(device, button_map); | ||||||
|  | -		}
 | ||||||
|  | -
 | ||||||
|  | -		if (libinput_device_config_scroll_has_natural_scroll(device))
 | ||||||
|  | -			libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
 | ||||||
|  | -
 | ||||||
|  | +                        if (libinput_device_config_scroll_has_natural_scroll(device))
 | ||||||
|  | +                                libinput_device_config_scroll_set_natural_scroll_enabled(device, natural_scrolling);
 | ||||||
|  | +         }
 | ||||||
|  |  		if (libinput_device_config_dwt_is_available(device)) | ||||||
|  |  			libinput_device_config_dwt_set_enabled(device, disable_while_typing); | ||||||
|  |   | ||||||
|  | -- 
 | ||||||
|  | 2.43.0 | ||||||
|  | 
 | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 neuromagus
						neuromagus