You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix that mouse-button-up event is parsed twice for drag-and-drop
Currently Input::get_singleton()->parse_input_event(mb); is called twice for mouse-button-up events when dropping in a different window on linuxbsd.
This commit is contained in:
@@ -3947,7 +3947,6 @@ void DisplayServerX11::process_events() {
|
|||||||
mb->set_window_id(window_id_other);
|
mb->set_window_id(window_id_other);
|
||||||
mb->set_position(Vector2(x, y));
|
mb->set_position(Vector2(x, y));
|
||||||
mb->set_global_position(mb->get_position());
|
mb->set_global_position(mb->get_position());
|
||||||
Input::get_singleton()->parse_input_event(mb);
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user