GNOME Bugzilla – Bug 758526
Apps with HeaderBar have margin outside window
Last modified: 2015-11-24 15:26:40 UTC
Created attachment 316077 [details] snapshot of window bug Distribution: Xubuntu 16.04 Gtk Version: 3.18.5 All applications with GtkHeaderBar have margin outside window.
What window manager and gtk theme is this ?
xfwm4 as window manager Greybird as default theme. but I have this window with others theme (numix, adwaita, ...)
Greetings, I suspect this ubuntu specific patch causes this issue?: ----- diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 2d9f4b5..0476b6b 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -7122,6 +7122,11 @@ gtk_window_realize (GtkWidget *widget) gtk_widget_register_window (widget, gdk_window); gtk_widget_set_realized (widget, TRUE); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + if (!gtk_widget_get_app_paintable (widget)) + gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window); + G_GNUC_END_IGNORE_DEPRECATIONS + attributes.x = allocation.x; attributes.y = allocation.y; attributes.width = allocation.width; -- 2.6.2 ----- I'm not sure but once I've applied this patch to 3.19.2 git master, I saw solid background areas under the Mutter decoration shadows, and Metacity's decoration as well... Regards.
sounds plausible
same thing for GtkMenu (where margin size is less than window size)
confirmed downstream issue