Be explicit about output- and layout coordinates

This commit is contained in:
Jente Hidskes 2019-12-29 16:07:14 +01:00
parent 21229984ff
commit 95b7782c72
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA
6 changed files with 47 additions and 41 deletions

4
seat.c
View file

@ -43,8 +43,8 @@ static bool
view_at(struct cg_view *view, double lx, double ly,
struct wlr_surface **surface, double *sx, double *sy)
{
double view_sx = lx - view->x;
double view_sy = ly - view->y;
double view_sx = lx - view->lx;
double view_sy = ly - view->ly;
double _sx, _sy;
struct wlr_surface *_surface = view_wlr_surface_at(view, view_sx, view_sy, &_sx, &_sy);