From 51e4be036830f315ea01e97861fc04f035a4d7cc Mon Sep 17 00:00:00 2001 From: Simon Long Date: Fri, 23 Feb 2024 11:15:01 +0000 Subject: [PATCH] Code style --- src/input/touch.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/input/touch.c b/src/input/touch.c index 7532fcc6..a1ef2a82 100644 --- a/src/input/touch.c +++ b/src/input/touch.c @@ -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;