input: Don't update pointer position on proximity_out
This commit is contained in:
parent
2a3b4dca5f
commit
e563dc85bf
1 changed files with 21 additions and 19 deletions
|
|
@ -1787,28 +1787,30 @@ impl State {
|
||||||
tool.frame(self, event.time());
|
tool.frame(self, event.time());
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut shell = self.common.shell.write();
|
if event.state() == ProximityState::In {
|
||||||
shell.update_pointer_position(position.to_local(&output), &output);
|
let mut shell = self.common.shell.write();
|
||||||
shell.update_focal_point(
|
shell.update_pointer_position(position.to_local(&output), &output);
|
||||||
&seat,
|
shell.update_focal_point(
|
||||||
position,
|
&seat,
|
||||||
self.common.config.cosmic_conf.accessibility_zoom.view_moves,
|
position,
|
||||||
);
|
self.common.config.cosmic_conf.accessibility_zoom.view_moves,
|
||||||
|
);
|
||||||
|
|
||||||
if output != current_output {
|
if output != current_output {
|
||||||
for session in cursor_sessions_for_output(&shell, ¤t_output) {
|
for session in cursor_sessions_for_output(&shell, ¤t_output) {
|
||||||
session.set_cursor_pos(None);
|
session.set_cursor_pos(None);
|
||||||
|
}
|
||||||
|
seat.set_active_output(&output);
|
||||||
}
|
}
|
||||||
seat.set_active_output(&output);
|
|
||||||
}
|
|
||||||
|
|
||||||
update_output_image_copy_cursor_position(
|
update_output_image_copy_cursor_position(
|
||||||
&shell,
|
&shell,
|
||||||
&self.common.clock,
|
&self.common.clock,
|
||||||
&output,
|
&output,
|
||||||
&seat,
|
&seat,
|
||||||
position,
|
position,
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
InputEvent::TabletToolTip { event, .. } => {
|
InputEvent::TabletToolTip { event, .. } => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue