Commit b8e6d063 authored by LRN's avatar LRN
Browse files

GDK W32: Don't check dest_surface for != NULL on button events

dest_surface is going to always be NULL for source contexts.
Previously we used to put the root window there to pass this check,
but root windows are gone (and root surfaces never existed to begin
with), so we have to adapt.
parent 6b507889
Pipeline #7057 failed with stages
in 1 minute and 1 second
......@@ -3099,8 +3099,7 @@ gdk_dnd_handle_button_event (GdkDragContext *context,
return FALSE;
if ((gdk_drag_context_get_selected_action (context) != 0) &&
(gdk_drag_context_get_dest_surface (context) != NULL))
if ((gdk_drag_context_get_selected_action (context) != 0))
g_signal_emit_by_name (context, "drop-performed",
gdk_event_get_time ((GdkEvent *) event));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment