Commit aa6b6f43 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko Committed by Adrien Plazas
Browse files

shadow-helper: Don't set style context parent

Even though foreign drawing uses a temporary GtkStyleContext, calling
gtk_style_context_set_parent() adds all its CSS nodes to the global
hierarchy, and then they aren't cleaned up. This shouldn't happen.

Fixes https://source.puri.sm/Librem5/libhandy/issues/191

(cherry picked from commit 1c2d9cac)
parent 8622f443
Pipeline #230165 failed with stages
in 0 seconds
......@@ -81,8 +81,6 @@ create_context (HdyShadowHelper *self,
context = gtk_style_context_new ();
gtk_style_context_set_path (context, path);
gtk_style_context_set_parent (context,
gtk_widget_get_style_context (self->widget));
gtk_style_context_add_provider (context,
GTK_STYLE_PROVIDER (self->provider),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment