[gtk/wip/baedert/for-master] popover: Only destroy arrow render node if position changed
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master] popover: Only destroy arrow render node if position changed
- Date: Thu, 10 Sep 2020 05:03:08 +0000 (UTC)
commit 3834ea8094d8211c71f5164779b7dc55a7b589e9
Author: Timm Bäder <mail baedert org>
Date: Thu Sep 10 06:02:34 2020 +0200
popover: Only destroy arrow render node if position changed
gtk/gtkpopover.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkpopover.c b/gtk/gtkpopover.c
index 5130d68ede..fd3567d8e2 100644
--- a/gtk/gtkpopover.c
+++ b/gtk/gtkpopover.c
@@ -414,14 +414,16 @@ update_popover_layout (GtkPopover *popover,
}
if (priv->final_position != position)
- gtk_widget_queue_allocate (GTK_WIDGET (popover));
+ {
+ gtk_widget_queue_allocate (GTK_WIDGET (popover));
+ g_clear_pointer (&priv->arrow_render_node, gsk_render_node_unref);
+ }
gtk_widget_allocate (GTK_WIDGET (popover),
gdk_surface_get_width (priv->surface),
gdk_surface_get_height (priv->surface),
-1, NULL);
- g_clear_pointer (&priv->arrow_render_node, gsk_render_node_unref);
gtk_widget_queue_draw (GTK_WIDGET (popover));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]