After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758526 - Apps with HeaderBar have margin outside window
Apps with HeaderBar have margin outside window
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: .General
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-11-23 09:05 UTC by Yannick Inizan
Modified: 2015-11-24 15:26 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
snapshot of window bug (8.54 KB, image/png)
2015-11-23 09:05 UTC, Yannick Inizan
Details

Description Yannick Inizan 2015-11-23 09:05:38 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.
Comment 1 Matthias Clasen 2015-11-23 11:00:26 UTC
What window manager and gtk theme is this ?
Comment 2 Yannick Inizan 2015-11-23 12:43:52 UTC
xfwm4 as window manager
Greybird as default theme. but I have this window with others theme (numix, adwaita, ...)
Comment 3 Tista 2015-11-23 13:03:53 UTC
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.
Comment 4 Matthias Clasen 2015-11-23 13:10:09 UTC
sounds plausible
Comment 5 Yannick Inizan 2015-11-23 14:02:34 UTC
same thing for GtkMenu (where margin size is less than window size)
Comment 6 Matthias Clasen 2015-11-24 15:26:40 UTC
confirmed downstream issue