Eliminate a Wayland-specific warning
The handling seems to be a bit convoluted there.
This commit is contained in:
parent
93cd4dc4f9
commit
2433b9046f
@ -2591,7 +2591,9 @@ on_drag_motion (GtkWidget *widget, GdkDragContext *drag_ctx,
|
||||
/* Discard leftovers from any previous unsuccessful drag. */
|
||||
if (self->priv->dnd_left)
|
||||
{
|
||||
g_object_unref (self->priv->dnd_symbol);
|
||||
/* The Wayland backend does a leave-drop-leave sequence. */
|
||||
if (self->priv->dnd_symbol)
|
||||
g_object_unref (self->priv->dnd_symbol);
|
||||
self->priv->dnd_symbol = NULL;
|
||||
self->priv->dnd_left = FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user