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>
This commit is contained in:
Michel Dänzer 2020-09-04 12:50:00 +02:00 committed by Michel Dänzer
parent 4c25356d6c
commit b6b1161fd7
1 changed files with 0 additions and 4 deletions

View File

@ -305,10 +305,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;