mirror of
https://github.com/cage-kiosk/cage.git
synced 2026-03-26 07:58:10 -04:00
Be explicit about output- and layout coordinates
This commit is contained in:
parent
21229984ff
commit
95b7782c72
6 changed files with 47 additions and 41 deletions
4
seat.c
4
seat.c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue