summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-25 10:39:55 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-25 10:39:55 -0300
commit094f0767d84a31ecd64cb9318886efbb613163ce (patch)
treeb4749808aa477335cfec1e4eed76cf065cdd6cd8
parent5245adcf81dd61ddb4eac048f6b004f3f455d7ed (diff)
-Fix input bug on window ordering due to foretting to sort root items
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index a8702f5526..a1bfbda1fc 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<Control*>::Element *E=gui.roots.back();E;E=E->prev()) {
Control *sw = E->get();