From f9097fd472f8322ad01e7fe1d11838151ec242c5 Mon Sep 17 00:00:00 2001 From: jeon Date: Thu, 2 Jan 2020 20:23:20 +0900 Subject: [PATCH] e_comp_wl: do not move coordination using min axis value - we get mouse position in output value, so don't move min axis Change-Id: I246e4135495cf629e26a974d0a01688c2358324a --- src/bin/e_comp_wl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index 22a9050..06da4ba 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -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 -- 2.7.4