gdkwindow: Simplify check for damaging offscreen windows
If a window both has an impl and its impl_window is of type offscreen, that must mean that it is the offscreen window, and the impl window is itself. We can reduce the indirection here and make it more clear.
This commit is contained in:
@@ -3249,9 +3249,8 @@ _gdk_window_process_updates_recurse_helper (GdkWindow *window,
|
||||
if (cairo_region_is_empty (clipped_expose_region) || window->destroyed)
|
||||
goto out;
|
||||
|
||||
if (gdk_window_is_offscreen (window->impl_window) &&
|
||||
gdk_window_has_impl (window))
|
||||
gdk_window_add_damage ((GdkWindow *) window->impl_window, clipped_expose_region);
|
||||
if (gdk_window_is_offscreen (window))
|
||||
gdk_window_add_damage (window, clipped_expose_region);
|
||||
|
||||
if (window->alpha != 255 && !gdk_window_has_impl (window))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user