input: Don't update pointer position on proximity_out

This commit is contained in:
Victoria Brekenfeld 2026-08-19 18:07:37 +02:00 • committed by Victoria Brekenfeld
parent 2a3b4dca5f
commit e563dc85bf

View file

@ -1787,6 +1787,7 @@ impl State {
tool.frame(self, event.time()); tool.frame(self, event.time());
} }
if event.state() == ProximityState::In {
let mut shell = self.common.shell.write(); let mut shell = self.common.shell.write();
shell.update_pointer_position(position.to_local(&output), &output); shell.update_pointer_position(position.to_local(&output), &output);
shell.update_focal_point( shell.update_focal_point(
@ -1811,6 +1812,7 @@ impl State {
); );
} }
} }
}
InputEvent::TabletToolTip { event, .. } => { InputEvent::TabletToolTip { event, .. } => {
{ {
let mut shell = self.common.shell.write(); let mut shell = self.common.shell.write();