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
This commit is contained in:
Carsten Haitzler 2022-04-04 20:58:15 +01:00
parent 1e19806faf
commit 1e623d3350
1 changed files with 4 additions and 1 deletions

View File

@ -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;