e_comp_wl_data: resize e_drag before drag client be show 91/275791/2 accepted/tizen/unified/20220608.140029 submit/tizen/20220607.064640
authorJunseok Kim <juns.kim@samsung.com>
Tue, 31 May 2022 07:33:43 +0000 (16:33 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 7 Jun 2022 06:08:51 +0000 (06:08 +0000)
There was a bug that drag client resized to 24x24.
It is timing issue and could reproduce with repeat drag quickly.
for fix this bug, resize the drag object before start drag.

Change-Id: I745cf725dde17974f296dee34ac2e9a84c060a87

src/bin/e_comp_wl_data.c

index 8b172f3ce7317abdea161e0119af47a8b9903702..af626bcb577a23dec29b58a75be353c99f84f36c 100644 (file)
@@ -734,7 +734,10 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client *client, struct wl_resourc
                                            NULL, 0, NULL, 0, NULL, _e_comp_wl_data_device_drag_finished);
    e_comp_wl->drag->button_mask = evas_pointer_button_down_mask_get(e_comp->evas);
    if (ec)
-     e_drag_object_set(e_comp_wl->drag, ec->frame);
+     {
+        e_drag_object_set(e_comp_wl->drag, ec->frame);
+        e_drag_resize(e_comp_wl->drag, ec->w, ec->h);
+     }
    e_drag_start(e_comp_wl->drag, x, y);
    if (e_comp_wl->ptr.ec)
      e_comp_wl_data_device_send_enter(e_comp_wl->ptr.ec);