Skip to content

Commit c20e855

Browse files
committed
Enable Drag and Drop for SubViewports and Windows
Search embedded Windows and SubViewports iteratively for Drop targets. Display Preview above embedded windows. Store Drag-information windowmanager-window-wide or application-wide. Send mouse enter/exit notifications to Drop-targets.
1 parent a8c805b commit c20e855

File tree

5 files changed

+206
-110
lines changed

5 files changed

+206
-110
lines changed

scene/gui/control.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ void Control::force_drag(const Variant &p_data, Control *p_control) {
18501850
void Control::set_drag_preview(Control *p_control) {
18511851
ERR_FAIL_COND(!is_inside_tree());
18521852
ERR_FAIL_COND(!get_viewport()->gui_is_dragging());
1853-
get_viewport()->_gui_set_drag_preview(this, p_control);
1853+
get_viewport()->_gui_set_drag_preview(p_control);
18541854
}
18551855

18561856
bool Control::is_drag_successful() const {

0 commit comments

Comments
 (0)