diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2021-11-17 07:42:10 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2021-11-17 07:42:37 +0100 |
commit | 2433b9046f85bbcd555ef3fe3bc602b1aeb9d16a (patch) | |
tree | 35dbf01f10b705bcd2b22f725cc233925e359b00 /liblogdiag | |
parent | 93cd4dc4f9ac085ee4bd997376049f88a8f4f5b0 (diff) | |
download | logdiag-2433b9046f85bbcd555ef3fe3bc602b1aeb9d16a.tar.gz logdiag-2433b9046f85bbcd555ef3fe3bc602b1aeb9d16a.tar.xz logdiag-2433b9046f85bbcd555ef3fe3bc602b1aeb9d16a.zip |
Eliminate a Wayland-specific warning
The handling seems to be a bit convoluted there.
Diffstat (limited to 'liblogdiag')
-rw-r--r-- | liblogdiag/ld-diagram-view.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/liblogdiag/ld-diagram-view.c b/liblogdiag/ld-diagram-view.c index e5d6a52..7f72c7e 100644 --- a/liblogdiag/ld-diagram-view.c +++ b/liblogdiag/ld-diagram-view.c @@ -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; } |