Commit 7ac303c7 authored by Michel Dänzer's avatar Michel Dänzer Committed by Michel Dänzer
Browse files

present/wnmd: Can't use page flipping for windows clipped by children

Noticed this was missing while working on the following fix.

* Dropped present_wnmd_can_window_flip hunk (that function is never
  called, will be cleaned up in a follow-up MR).

Reviewed-by: Olivier Fourdan <> # v1
Reviewed-by: Roman Gilg's avatarRoman Gilg <>
parent 727df0a7
......@@ -326,6 +326,10 @@ present_wnmd_check_flip(RRCrtcPtr crtc,
if ( !RegionEqual(&window->winSize, &toplvl_window->winSize) )
return FALSE;
/* Can't flip if window clipped by children */
if (!RegionEqual(&window->clipList, &window->winSize))
return FALSE;
/* Ask the driver for permission */
if (screen_priv->wnmd_info->check_flip2) {
if (!(*screen_priv->wnmd_info->check_flip2) (crtc, window, pixmap, sync_flip, reason)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment