mirror of
				https://github.com/swaywm/sway.git
				synced 2025-10-29 05:40:18 -04:00 
			
		
		
		
	minor logic error
This commit is contained in:
		
							parent
							
								
									6350752d6b
								
							
						
					
					
						commit
						dc6942d10d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -182,7 +182,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *seat, | ||||||
| 		enum wl_seat_capability caps) { | 		enum wl_seat_capability caps) { | ||||||
| 	struct registry *reg = data; | 	struct registry *reg = data; | ||||||
| 
 | 
 | ||||||
| 	if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !reg->pointer) { | 	if ((caps & WL_SEAT_CAPABILITY_POINTER) && !reg->pointer) { | ||||||
| 		reg->pointer = wl_seat_get_pointer(reg->seat); | 		reg->pointer = wl_seat_get_pointer(reg->seat); | ||||||
| 	} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { | 	} else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && reg->pointer) { | ||||||
| 		wl_pointer_destroy(reg->pointer); | 		wl_pointer_destroy(reg->pointer); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 barfoo1
						barfoo1