From f00e0b589f94413afd446c63d941ced77fdda539 Mon Sep 17 00:00:00 2001 From: MarianoGNU Date: Fri, 22 Jul 2016 20:35:12 -0300 Subject: [PATCH] Fix pick color from screen. Closes #5853 --- scene/gui/color_picker.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index c8bd9749dfd..b69646432e6 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -415,11 +415,12 @@ void ColorPicker::_screen_pick_pressed() if (!screen) { screen=memnew( Control ); r->add_child(screen); + screen->set_as_toplevel(true); screen->set_area_as_parent_rect(); screen->connect("input_event",this,"_screen_input"); } screen->raise(); - screen->show(); + screen->show_modal(); r->queue_screen_capture(); }