diff --git a/client/X11/xf_rail.c b/client/X11/xf_rail.c index ba96483db..c9d4ea7ff 100644 --- a/client/X11/xf_rail.c +++ b/client/X11/xf_rail.c @@ -217,12 +217,9 @@ void xf_rail_invalidate_region(xfContext* xfc, REGION16* invalidRegion) updateRect.right = extents->right - appWindow->x; updateRect.bottom = extents->bottom - appWindow->y; - if (appWindow) - { - xf_UpdateWindowArea(xfc, appWindow, updateRect.left, updateRect.top, - updateRect.right - updateRect.left, - updateRect.bottom - updateRect.top); - } + xf_UpdateWindowArea(xfc, appWindow, updateRect.left, updateRect.top, + updateRect.right - updateRect.left, + updateRect.bottom - updateRect.top); } } }