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