From 094f0767d84a31ecd64cb9318886efbb613163ce Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 25 Jan 2016 10:39:55 -0300 Subject: [PATCH] -Fix input bug on window ordering due to foretting to sort root items --- scene/main/viewport.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index a8702f5526c..a1bfbda1fcf 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1493,6 +1493,8 @@ Control* Viewport::_gui_find_control(const Point2& p_global) { return ret; } + _gui_sort_roots(); + for (List::Element *E=gui.roots.back();E;E=E->prev()) { Control *sw = E->get();