shadow-factory: Update shadow of attached modals

When commit 91c6a144da synced shadows with Adwaita, it removed the
shadow completely from attached modal dialogs. However Adwaita uses
the same shadow for all dialogs (modal or not), so do the same here.

https://gitlab.gnome.org/GNOME/mutter/issues/490
This commit is contained in:
Florian Müllner 2019-03-06 23:31:43 +01:00 committed by Georges Basile Stavracas Neto
parent 9aca31c814
commit 8a87e87a05

View File

@ -128,7 +128,7 @@ MetaShadowClassInfo default_shadow_classes[] = {
{ "popup-menu", { 1, -1, 0, 0, 128 }, { 1, -1, 0, 0, 128 } }, { "popup-menu", { 1, -1, 0, 0, 128 }, { 1, -1, 0, 0, 128 } },
{ "dropdown-menu", { 1, -1, 0, 0, 128 }, { 1, -1, 0, 0, 128 } }, { "dropdown-menu", { 1, -1, 0, 0, 128 }, { 1, -1, 0, 0, 128 } },
{ "attached", { 0, -1, 0, 0, 0 }, { 0, -1, 0, 0, 0 } } { "attached", { 10, -1, 0, 3, 128 }, { 8, -1, 0, 2, 64 } }
}; };
G_DEFINE_TYPE (MetaShadowFactory, meta_shadow_factory, G_TYPE_OBJECT); G_DEFINE_TYPE (MetaShadowFactory, meta_shadow_factory, G_TYPE_OBJECT);