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());
|
||||
}
|
||||
|
||||
let mut shell = self.common.shell.write();
|
||||
shell.update_pointer_position(position.to_local(&output), &output);
|
||||
shell.update_focal_point(
|
||||
&seat,
|
||||
position,
|
||||
self.common.config.cosmic_conf.accessibility_zoom.view_moves,
|
||||
);
|
||||
if event.state() == ProximityState::In {
|
||||
let mut shell = self.common.shell.write();
|
||||
shell.update_pointer_position(position.to_local(&output), &output);
|
||||
shell.update_focal_point(
|
||||
&seat,
|
||||
position,
|
||||
self.common.config.cosmic_conf.accessibility_zoom.view_moves,
|
||||
);
|
||||
|
||||
if output != current_output {
|
||||
for session in cursor_sessions_for_output(&shell, ¤t_output) {
|
||||
session.set_cursor_pos(None);
|
||||
if output != current_output {
|
||||
for session in cursor_sessions_for_output(&shell, ¤t_output) {
|
||||
session.set_cursor_pos(None);
|
||||
}
|
||||
seat.set_active_output(&output);
|
||||
}
|
||||
seat.set_active_output(&output);
|
||||
}
|
||||
|
||||
update_output_image_copy_cursor_position(
|
||||
&shell,
|
||||
&self.common.clock,
|
||||
&output,
|
||||
&seat,
|
||||
position,
|
||||
);
|
||||
update_output_image_copy_cursor_position(
|
||||
&shell,
|
||||
&self.common.clock,
|
||||
&output,
|
||||
&seat,
|
||||
position,
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
InputEvent::TabletToolTip { event, .. } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue