-Fix input bug on window ordering due to foretting to sort root items

This commit is contained in:
Juan Linietsky 2016-01-25 10:39:55 -03:00
parent 5245adcf81
commit 094f0767d8

View File

@ -1493,6 +1493,8 @@ Control* Viewport::_gui_find_control(const Point2& p_global) {
return ret; return ret;
} }
_gui_sort_roots();
for (List<Control*>::Element *E=gui.roots.back();E;E=E->prev()) { for (List<Control*>::Element *E=gui.roots.back();E;E=E->prev()) {
Control *sw = E->get(); Control *sw = E->get();