forked from external/yambar
bar/wayland: scale mouse position on mouse entry
This commit is contained in:
parent
8567257a88
commit
9b5dca52e2
1 changed files with 2 additions and 2 deletions
|
@ -149,8 +149,8 @@ wl_pointer_enter(void *data, struct wl_pointer *wl_pointer,
|
|||
{
|
||||
struct wayland_backend *backend = data;
|
||||
backend->pointer.serial = serial;
|
||||
backend->pointer.x = wl_fixed_to_int(surface_x);
|
||||
backend->pointer.y = wl_fixed_to_int(surface_y);
|
||||
backend->pointer.x = wl_fixed_to_int(surface_x) * backend->monitor->scale;
|
||||
backend->pointer.y = wl_fixed_to_int(surface_y) * backend->monitor->scale;
|
||||
|
||||
update_cursor_surface(backend);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue