mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	bugfix: set cursor coords on warp_unchecked
This commit is contained in:
		
							parent
							
								
									6699024b44
								
							
						
					
					
						commit
						d9ab631f5d
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -133,6 +133,9 @@ static void wlr_cursor_warp_unchecked(struct wlr_cursor *cur,
 | 
				
			||||||
		wlr_output_move_cursor(l_output->output, output_x - hotspot_x,
 | 
							wlr_output_move_cursor(l_output->output, output_x - hotspot_x,
 | 
				
			||||||
			output_y - hotspot_y);
 | 
								output_y - hotspot_y);
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						cur->x = x;
 | 
				
			||||||
 | 
						cur->y = y;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					/**
 | 
				
			||||||
| 
						 | 
					@ -239,8 +242,6 @@ void wlr_cursor_move(struct wlr_cursor *cur, struct wlr_input_device *dev,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	wlr_cursor_warp_unchecked(cur, x, y);
 | 
						wlr_cursor_warp_unchecked(cur, x, y);
 | 
				
			||||||
	cur->x = x;
 | 
					 | 
				
			||||||
	cur->y = y;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void handle_pointer_motion(struct wl_listener *listener, void *data) {
 | 
					static void handle_pointer_motion(struct wl_listener *listener, void *data) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue