diff options
author | Michel Dänzer <mdaenzer@redhat.com> | 2020-08-28 11:57:39 +0200 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2020-09-04 17:34:22 +0200 |
commit | 7ac303c7b1e3b1be79ba3648e217798683e65a99 (patch) | |
tree | 0dfbfef578ae5b2c9beaf7f6730058cf21d17cee | |
parent | 727df0a74e75982f4352f0a3e574fcf6db3372f7 (diff) |
present/wnmd: Can't use page flipping for windows clipped by children
Noticed this was missing while working on the following fix.
v2:
* 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 <ofourdan@redhat.com> # v1
Reviewed-by: Roman Gilg <subdiff@gmail.com>
-rw-r--r-- | present/present_wnmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/present/present_wnmd.c b/present/present_wnmd.c index 4ee2585c2..5420d54e8 100644 --- a/present/present_wnmd.c +++ b/present/present_wnmd.c @@ -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)) { |