summaryrefslogtreecommitdiff
path: root/present
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2020-09-04 12:50:00 +0200
committerMichel Dänzer <michel@daenzer.net>2020-09-07 17:57:08 +0200
commitb6b1161fd7ac409156fb69439897bcabdeacf393 (patch)
treee890504c3977c1295503ef16c41dfc77e0875e43 /present
parent4c25356d6cd908c5030c70e712076dff318ac00d (diff)
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>
Diffstat (limited to 'present')
-rw-r--r--present/present_wnmd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/present/present_wnmd.c b/present/present_wnmd.c
index 5420d54e8..97b8fe00c 100644
--- a/present/present_wnmd.c
+++ b/present/present_wnmd.c
@@ -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;