E20 converts the client-area coordinates to the screen coordinates
using e_comp_wl_map_inv_coords_get(). When trying to get new coordinates,
there was issues with rounding error. Fix it using lround()
Change-Id: I6be25998287ad0dc869eb60af8474ba2b2a7a77e
}
e_map_coords_get(map2, (double)x, (double)y, &inv_x, &inv_y, 0);
- *mx = (int)inv_x;
- *my = (int)inv_y;
+ *mx = lround(inv_x);
+ *my = lround(inv_y);
e_map_free(map);
e_map_free(map2);