e_comp_wl: correct position of the drag window 83/296983/2
authorJunseok Kim <juns.kim@samsung.com>
Tue, 8 Aug 2023 06:21:20 +0000 (15:21 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Tue, 8 Aug 2023 08:41:35 +0000 (08:41 +0000)
the x, y is relative position of the window under pointer.
and the ev->x, ev->y is absolute position of the screen.
the drag window have to position to absolute position, not to relative position.

Change-Id: Ic9fd3414e2bf890f18ccd8afbc49f8e72753f1e3

src/bin/e_comp_wl.c

index d90faa1..0bfe203 100644 (file)
@@ -2534,7 +2534,7 @@ _e_comp_wl_cb_mouse_move(void *d EINA_UNUSED, int t EINA_UNUSED, Ecore_Event_Mou
         y = ev->y - ec->client.y;
 
         if (e_comp_wl->drag)
-          e_drag_move(e_comp_wl->drag, x, y);
+          e_drag_move(e_comp_wl->drag, ev->x, ev->y);
 
         wl_data_device_send_motion(res, ev->timestamp, wl_fixed_from_int(x), wl_fixed_from_int(y));
      }