From 2651fcbef9b53a657c00387c478914ae52a0fe7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 6 May 2017 16:32:17 +0200 Subject: [PATCH] widget: Special-case popover in snapshot Just like we do it for GtkWindow. --- gtk/gtkwidget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 57c8a64f9e..43c8b0c932 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -15416,7 +15416,8 @@ gtk_widget_snapshot (GtkWidget *widget, _gtk_widget_get_allocation (widget, &allocation); - if (!GTK_IS_WINDOW (widget)) + if (!GTK_IS_WINDOW (widget) && + !GTK_IS_POPOVER (widget)) { gtk_snapshot_offset (snapshot, margin.left, margin.top); gtk_css_style_snapshot_background (style,