forked from enlightenment/enlightenment
Register the new window into out evas.
Summary: Otherwise the mouse up event is emitted to the evas but the evas does not work with it, because it does not know the window it is from. This leads to a evas_event_down_count_get bigger than 1 which leads to a missing mouse_out event. With this missing mouse_out event _post_up_handle in evas_event.c is not called anymore, this means all the click events are getting emitted to the object which was last clicked. This fixes T1894. Test Plan: Drag and Drop a icon somewhere and click somewhere after that, the evas will not get stuck anymore Reviewers: raster Subscribers: cedric, abyomi0, zmike, raster Maniphest Tasks: T1894 Differential Revision: https://phab.enlightenment.org/D1771
This commit is contained in:
parent
827bd2818a
commit
a6f7d9ac1e
|
@ -285,6 +285,8 @@ e_drag_start(E_Drag *drag, int x, int y)
|
||||||
_drag_win = ecore_x_window_input_new(drag->comp->win,
|
_drag_win = ecore_x_window_input_new(drag->comp->win,
|
||||||
drag->comp->man->x, drag->comp->man->y,
|
drag->comp->man->x, drag->comp->man->y,
|
||||||
drag->comp->man->w, drag->comp->man->h);
|
drag->comp->man->w, drag->comp->man->h);
|
||||||
|
ecore_event_window_register(_drag_win, drag->comp->ee, drag->comp->evas,
|
||||||
|
NULL, NULL, NULL, NULL);
|
||||||
ecore_x_window_show(_drag_win);
|
ecore_x_window_show(_drag_win);
|
||||||
#endif
|
#endif
|
||||||
_drag_win_root = drag->comp->man->root;
|
_drag_win_root = drag->comp->man->root;
|
||||||
|
@ -1164,6 +1166,7 @@ _e_drag_free(E_Drag *drag)
|
||||||
eina_stringshare_del(drag->types[i]);
|
eina_stringshare_del(drag->types[i]);
|
||||||
free(drag);
|
free(drag);
|
||||||
#ifndef HAVE_WAYLAND_ONLY
|
#ifndef HAVE_WAYLAND_ONLY
|
||||||
|
ecore_event_window_unregister(_drag_win);
|
||||||
ecore_x_window_free(_drag_win);
|
ecore_x_window_free(_drag_win);
|
||||||
ecore_x_window_shadow_tree_flush();
|
ecore_x_window_shadow_tree_flush();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue