e_dnd: Create e_map when the drag window didn't have map 44/309244/1
authorJunseok Kim <juns.kim@samsung.com>
Sun, 7 Apr 2024 09:36:42 +0000 (18:36 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Mon, 8 Apr 2024 02:52:46 +0000 (11:52 +0900)
There're bug that drag window didn't rotate when window is portrait.
It's due to the drag client didn't have their e_map.
For fix this issue, If the drag window didn't have their map, then create new one.

Change-Id: I5b0400de47ee7ace8d90059b841fb49471f3faf7

src/bin/e_dnd.c

index 9160380..744eefe 100644 (file)
@@ -331,9 +331,11 @@ _e_drag_map_apply(E_Drag *drag)
    if (!need_map_enable) return;
 
    map = e_client_map_get(e_comp_wl->drag_client);
-   if (!map) return;
 
-   new_map = e_map_dup(map);
+   if (map)
+     new_map = e_map_dup(map);
+   else
+     new_map = e_map_new();
    if (!new_map) goto fin;
 
    e_client_geometry_get(e_comp_wl->drag_client, NULL, NULL, &drag_client_w, &drag_client_h);