From fcba654bb8bdf4e39b37628a1d46ed3e2b74692a Mon Sep 17 00:00:00 2001 From: Nathan Warden Date: Sat, 16 Dec 2017 18:34:32 -0500 Subject: [PATCH] Fixed a bug where mouse button focus breaks when using multiple buttons at once. --- scene/main/viewport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index f5d7043a403..9fff32a6b72 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1640,7 +1640,7 @@ void Viewport::_gui_input_event(Ref p_event) { if (mb->is_pressed()) { Size2 pos = mpos; - if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button) { + if (gui.mouse_focus && mb->get_button_index() != gui.mouse_focus_button && mb->get_button_index() == BUTTON_LEFT) { //do not steal mouse focus and stuff