e_comp_wl: do not move coordination using min axis value 53/221453/1
authorjeon <jhyuni.kang@samsung.com>
Thu, 2 Jan 2020 11:23:20 +0000 (20:23 +0900)
committerjeon <jhyuni.kang@samsung.com>
Thu, 2 Jan 2020 11:23:24 +0000 (20:23 +0900)
  - we get mouse position in output value, so don't move min axis

Change-Id: I246e4135495cf629e26a974d0a01688c2358324a

src/bin/e_comp_wl.c

index d2e2d41933a68fec4b1467bf3f3710f60a21bfc1..402a719eac7f6469c4f6da73575ef0ceed88ac37 100644 (file)
@@ -492,8 +492,8 @@ e_comp_wl_map_inv_coord_get(E_Client *ec, int x, int y, int *mx, int *my)
    diff_w = (double)(max_x - min_x) / (double)ec->w;
    diff_h = (double)(max_y - min_y) / (double)ec->h;
 
-   *mx = (int)(x * diff_w) + min_x;
-   *my = (int)(y * diff_h) + min_y;
+   *mx = (int)(x * diff_w);
+   *my = (int)(y * diff_h);
 }
 
 static void