mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
Initialise variables to prevent warning
This commit is contained in:
parent
5cba33a64c
commit
eddf67c86d
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ handle_touch_down(struct wl_listener *listener, void *data)
|
|||
|
||||
/* Compute layout => surface offset and save for this touch point */
|
||||
struct touch_point *touch_point = znew(*touch_point);
|
||||
double x_offset, y_offset;
|
||||
double x_offset = 0.0, y_offset = 0.0;
|
||||
touch_point->surface = touch_get_coords(seat, event->touch,
|
||||
event->x, event->y, &x_offset, &y_offset);
|
||||
touch_point->touch_id = event->touch_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue