tests/test-client: Ensure that screen has always a compositor

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2970>
This commit is contained in:
Marco Trevisan (Treviño) 2023-04-18 23:57:08 +02:00
parent b48351005e
commit c653f30283

View File

@ -1003,6 +1003,8 @@ main(int argc, char **argv)
gtk_init (NULL, NULL); gtk_init (NULL, NULL);
screen = gdk_screen_get_default (); screen = gdk_screen_get_default ();
g_assert_true (gdk_screen_is_composited (screen));
provider = gtk_css_provider_new (); provider = gtk_css_provider_new ();
static const char *no_decoration_css = static const char *no_decoration_css =
"decoration {" "decoration {"