csd: Improve appearance inside glade

glade turns windows into non-toplevels, so we can easily recognize
that situation and avoid adding a humongous shadow area.
This commit is contained in:
Matthias Clasen 2014-11-01 14:49:02 -04:00
parent 1a3bdefb00
commit 120abd9a6e

View File

@ -6385,6 +6385,9 @@ get_shadow_width (GtkWidget *widget,
priv->tiled)
return;
if (!gtk_widget_is_toplevel (widget))
return;
state = gtk_widget_get_state_flags (widget);
context = gtk_widget_get_style_context (widget);