rendernode-tool: Hide window background when --undecorated

We want to only show the node, nothing else. So getting rid of as much
CSS as possible is good.
This commit is contained in:
Benjamin Otte 2024-07-06 05:30:44 +02:00
parent ecc2e02453
commit ead566b841

View File

@ -89,6 +89,8 @@ show_file (const char *filename,
window = gtk_window_new ();
gtk_window_set_decorated (GTK_WINDOW (window), decorated);
gtk_window_set_resizable (GTK_WINDOW (window), decorated);
if (!decorated)
gtk_widget_remove_css_class (window, "background");
set_window_title (GTK_WINDOW (window), filename);
gtk_window_set_child (GTK_WINDOW (window), handle);