e_dnd: Create e_map when the drag window didn't have map 36/309736/1
authorJunseok Kim <juns.kim@samsung.com>
Sun, 7 Apr 2024 09:36:42 +0000 (18:36 +0900)
committerJunSeok Kim <juns.kim@samsung.com>
Tue, 16 Apr 2024 06:56:55 +0000 (06:56 +0000)
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
(cherry picked from commit 86e8929fc280af6ce0dcac34b19b7b4b40f0f677)

src/bin/e_dnd.c

index 2176d47..5c8733e 100644 (file)
@@ -329,9 +329,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);