compositor-wayland: Fix cursor coordinate transforms so it works on translated outputs
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
06ced80f93
commit
584fb62437
@ -862,8 +862,6 @@ input_handle_pointer_enter(void *data, struct wl_pointer *pointer,
|
||||
location = THEME_LOCATION_CLIENT_AREA;
|
||||
}
|
||||
|
||||
x += wl_fixed_from_int(input->output->base.x);
|
||||
y += wl_fixed_from_int(input->output->base.y);
|
||||
weston_output_transform_coordinate(&input->output->base, x, y, &x, &y);
|
||||
|
||||
if (location == THEME_LOCATION_CLIENT_AREA) {
|
||||
@ -918,8 +916,6 @@ input_handle_motion(void *data, struct wl_pointer *pointer,
|
||||
location = THEME_LOCATION_CLIENT_AREA;
|
||||
}
|
||||
|
||||
x += wl_fixed_from_int(input->output->base.x);
|
||||
y += wl_fixed_from_int(input->output->base.y);
|
||||
weston_output_transform_coordinate(&input->output->base, x, y, &x, &y);
|
||||
|
||||
if (input->focus && location != THEME_LOCATION_CLIENT_AREA) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user