mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
Make gdk_x11_window_set_theme_variant do nothing for non-toplevels
This avoids problems when calling this e.g. on offscreen windows.
This commit is contained in:
parent
2226996b80
commit
d46f0db38b
@ -3107,7 +3107,12 @@ void
|
|||||||
gdk_x11_window_set_theme_variant (GdkWindow *window,
|
gdk_x11_window_set_theme_variant (GdkWindow *window,
|
||||||
char *variant)
|
char *variant)
|
||||||
{
|
{
|
||||||
GdkDisplay *display = gdk_window_get_display (window);
|
GdkDisplay *display;
|
||||||
|
|
||||||
|
if (!WINDOW_IS_TOPLEVEL (window))
|
||||||
|
return;
|
||||||
|
|
||||||
|
display = gdk_window_get_display (window);
|
||||||
|
|
||||||
if (variant != NULL)
|
if (variant != NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user