e_comp_wl_data: makes drag_client can reusable 35/274535/1
authorJunseok Kim <juns.kim@samsung.com>
Thu, 28 Apr 2022 09:37:37 +0000 (18:37 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Mon, 2 May 2022 04:30:43 +0000 (13:30 +0900)
the drag_client (drag and drop icon that under pointer) object can re-use by client.
but the E_Client of icon_resource couldn't re-assigned to drag_client.
this patch fixes it.

Change-Id: If51573ab85c1af226e7328377991d9c43965d3e9
Signed-off-by: Junseok Kim <juns.kim@samsung.com>
src/bin/e_comp_wl_data.c

index e839e0a..a1c61f2 100644 (file)
@@ -713,9 +713,9 @@ _e_comp_wl_data_device_cb_drag_start(struct wl_client *client, struct wl_resourc
              e_client_layer_set(ec, E_LAYER_CLIENT_DRAG);
              e_client_focus_stack_set(eina_list_remove(e_client_focus_stack_get(), ec));
              EC_CHANGED(ec);
-             e_comp_wl->drag_client = ec;
              e_comp_override_add();
           }
+        e_comp_wl->drag_client = ec;
      }
 
    EINA_LIST_FOREACH(e_comp_wl->ptr.resources, l, res)