tests/test-client: Disable shadow for Wayland client too

The shadow was disabled for the X11 client as it was far to unreliable
when comparing sizes.

It seems that the Wayland backend has been somewhat unreliable as well,
where some race condition causing incorrect sizes thus a flaky test.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1288
This commit is contained in:
Jonas Ådahl 2020-06-05 00:07:48 +02:00
parent 8d84449941
commit 7b45de941b

View File

@ -858,6 +858,8 @@ int
main(int argc, char **argv)
{
GOptionContext *context = g_option_context_new (NULL);
GdkScreen *screen;
GtkCssProvider *provider;
GError *error = NULL;
g_option_context_add_main_entries (context, options, NULL);
@ -876,11 +878,6 @@ main(int argc, char **argv)
gtk_init (NULL, NULL);
if (!wayland)
{
GdkScreen *screen;
GtkCssProvider *provider;
screen = gdk_screen_get_default ();
provider = gtk_css_provider_new ();
static const char *no_decoration_css =
@ -900,7 +897,6 @@ main(int argc, char **argv)
}
gtk_style_context_add_provider_for_screen (screen, GTK_STYLE_PROVIDER (provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
windows = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, NULL);