mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
Code style
This commit is contained in:
parent
e14dd38ff8
commit
51e4be0368
1 changed files with 4 additions and 3 deletions
|
|
@ -100,10 +100,11 @@ touch_down(struct wl_listener *listener, void *data)
|
|||
wl_list_insert(&seat->touch_points, &touch_point->link);
|
||||
|
||||
if (touch_point->surface) {
|
||||
/* Convert coordinates: first [0, 1] => layout, then apply offsets */
|
||||
/* Convert coordinates: first [0, 1] => layout,
|
||||
* then apply offsets */
|
||||
double lx, ly;
|
||||
wlr_cursor_absolute_to_layout_coords(seat->cursor, &event->touch->base,
|
||||
event->x, event->y, &lx, &ly);
|
||||
wlr_cursor_absolute_to_layout_coords(seat->cursor,
|
||||
&event->touch->base, event->x, event->y, &lx, &ly);
|
||||
|
||||
/* Apply offsets to get surface coords before reporting event */
|
||||
double sx = lx - x_offset;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue