present/wnmd: Remove dead check from present_wnmd_check_flip

present_wnmd_toplvl_pixmap_window returns a window with the same window
pixmap, so the check could never fail.

Reviewed-by: Roman Gilg <subdiff@gmail.com>
(cherry picked from commit b6b1161fd7)
This commit is contained in:
Michel Dänzer 2020-09-07 18:40:34 +02:00 committed by Michel Dänzer
parent 51ee6e5ceb
commit 174cb91d82

View File

@ -270,10 +270,6 @@ present_wnmd_check_flip(RRCrtcPtr crtc,
if (!screen_priv->wnmd_info->flip)
return FALSE;
/* Can't flip redirected child windows */
if (screen->GetWindowPixmap(window) != screen->GetWindowPixmap(toplvl_window))
return FALSE;
/* Source pixmap must align with window exactly */
if (x_off || y_off)
return FALSE;