mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	input/tablet: query tablet focused surface for cursor image check
`handle_tablet_tool_set_cursor` was copied from input/cursor.c's `handle_request_set_cursor`, but the focused surface check was not adjusted appropriately. Fixes #5257.
This commit is contained in:
		
							parent
							
								
									c3c9737e8b
								
							
						
					
					
						commit
						a5c26e6a05
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -106,8 +106,7 @@ static void handle_tablet_tool_set_cursor(struct wl_listener *listener, void *da
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	struct wl_client *focused_client = NULL;
 | 
						struct wl_client *focused_client = NULL;
 | 
				
			||||||
	struct wlr_surface *focused_surface =
 | 
						struct wlr_surface *focused_surface = tool->tablet_v2_tool->focused_surface;
 | 
				
			||||||
		cursor->seat->wlr_seat->pointer_state.focused_surface;
 | 
					 | 
				
			||||||
	if (focused_surface != NULL) {
 | 
						if (focused_surface != NULL) {
 | 
				
			||||||
		focused_client = wl_resource_get_client(focused_surface->resource);
 | 
							focused_client = wl_resource_get_client(focused_surface->resource);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue