mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 05:00:07 +00:00
GDK W32: Make sure drag source window is not NULL
This prevents GTK from throwing a bunch of warnings when it tries to get drag source window -> screen of that window -> ipc widget for that screen, and then tries to attach a signal handler to that widget. Specifically, this happens when we get a DnD move from another application. https://bugzilla.gnome.org/show_bug.cgi?id=786509
This commit is contained in:
parent
3fd23fcfd1
commit
c329940cf1
@ -575,6 +575,8 @@ idroptarget_dragenter (LPDROPTARGET This,
|
||||
*/
|
||||
if (current_src_context && current_src_context->context)
|
||||
g_set_object (&context->source_window, current_src_context->context->source_window);
|
||||
else
|
||||
g_set_object (&context->source_window, gdk_get_default_root_window ());
|
||||
|
||||
g_set_object (&sel_win32->target_drag_context, context);
|
||||
context->actions = GDK_ACTION_DEFAULT | GDK_ACTION_COPY | GDK_ACTION_MOVE;
|
||||
|
Loading…
Reference in New Issue
Block a user