Commit 22d28ef4 authored by Benjamin Otte's avatar Benjamin Otte Committed by Vincent Untz
Browse files

x11: Don't set ParentRelative if the parent's visual is different

It's like 82e6e32c, but when a pattern is given as argument.
parent 56e79739
......@@ -2674,6 +2674,7 @@ gdk_window_x11_set_background (GdkWindow *window,
if (cairo_pattern_get_surface (pattern, &surface) == CAIRO_STATUS_SUCCESS &&
matrix_is_identity (&matrix) &&
cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_XLIB &&
cairo_xlib_surface_get_visual (surface) == GDK_VISUAL_XVISUAL (gdk_window_get_visual ((window))) &&
cairo_xlib_surface_get_display (surface) == GDK_WINDOW_XDISPLAY (window))
double x, y;
Markdown is supported
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