e_comp_wl_input_thread: fix to calculate XX_client_under_pointer(x, y) 25/317525/1
authorduna.oh <duna.oh@samsung.com>
Thu, 2 Jan 2025 10:29:40 +0000 (19:29 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Fri, 3 Jan 2025 06:39:53 +0000 (15:39 +0900)
Change-Id: I66b68e30d34b7c9a918d0cb79376c6575300a8e4

src/bin/server/e_comp_wl_input_thread.c

index a9a0d112d974bf436939c0ddbd4c258b31f51aff..68490c0e2078fe98a11d38cd5bffb123b7a569a4 100644 (file)
@@ -60,10 +60,10 @@ _e_comp_wl_input_thread_client_under_pointer(int x, int y)
                {
                   rect = (Eina_Rectangle *)list->data;
 
-                  ir_x = rect->x;
-                  ir_y = rect->y;
-                  ir_w = rect->w;
-                  ir_h = rect->h;
+                  ir_x = cx + rect->x;
+                  ir_y = cy + rect->y;
+                  ir_w = cx + rect->w;
+                  ir_h = cy + rect->h;
 
                   if (E_INSIDE(x, y, ir_x, ir_y, ir_w, ir_h))
                     {