shell: Fix render positions for global workspace mode

This commit is contained in:
Victoria Brekenfeld 2022-11-22 19:52:13 +01:00
parent c25f2ed447
commit 4a9afd0572
3 changed files with 21 additions and 23 deletions

View file

@ -82,9 +82,7 @@ where
Some(ptr) => ptr,
None => continue,
};
let location = state
.shell
.map_global_to_space(pointer.current_location().to_i32_round(), output);
let location = pointer.current_location() - output.current_location().to_f64();
if mode != CursorMode::None {
elements.extend(