forked from AuroraMiddleware/gtk
csd: Fix an oversight for popups
After the recent rework of client-side shadow code, menus, tooltips and similar popups were ending up with solid decorations. Fix this oversight.
This commit is contained in:
parent
83b6423409
commit
a08ee01c64
@ -5806,7 +5806,8 @@ create_decoration (GtkWidget *widget)
|
||||
GtkWindow *window = GTK_WINDOW (widget);
|
||||
GtkWindowPrivate *priv = window->priv;
|
||||
|
||||
if (!gtk_window_supports_client_shadow (window))
|
||||
priv->use_client_shadow = gtk_window_supports_client_shadow (window);
|
||||
if (!priv->use_client_shadow)
|
||||
return;
|
||||
|
||||
gtk_window_enable_csd (window);
|
||||
|
Loading…
Reference in New Issue
Block a user