raster pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=1e623d33502f8e098daf0228c22bc8ebf8d2f24c

commit 1e623d33502f8e098daf0228c22bc8ebf8d2f24c
Author: Carsten Haitzler <[email protected]>
Date:   Mon Apr 4 20:58:15 2022 +0100

    ecore evas - x - dont dfisable dnd if we are listening for drop events
    
    on mouse release/up dont disable xdnd awareness if we're listening for
    dnd events still
    
    @fix
---
 src/modules/ecore_evas/engines/x/ecore_evas_x.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/ecore_evas/engines/x/ecore_evas_x.c 
b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
index 6b70c65d3e..ee612991fd 100644
--- a/src/modules/ecore_evas/engines/x/ecore_evas_x.c
+++ b/src/modules/ecore_evas/engines/x/ecore_evas_x.c
@@ -4038,7 +4038,10 @@ _force_stop_self_dnd(Ecore_Evas *ee)
    //Selection buffer is freed as a response to the FINISHED event.
    ecore_x_pointer_ungrab();
    ecore_x_dnd_self_drop();
-   ecore_x_dnd_aware_set(ee->prop.window, EINA_FALSE);
+   if ((!ee->func.fn_dnd_drop) &&
+       (!ee->func.fn_dnd_state_change) &&
+       (!ee->func.fn_dnd_motion))
+     ecore_x_dnd_aware_set(ee->prop.window, EINA_FALSE);
    ecore_event_handler_del(edata->mouse_up_handler);
    edata->mouse_up_handler = NULL;
 

-- 


Reply via email to