summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2019-02-22 11:16:36 +0100
committerMichel Dänzer <michel@daenzer.net>2019-02-22 11:56:44 +0100
commit01a03a476a5f963846fdb7702217be17ac1ecd6c (patch)
tree204a9d961e8515fe92b60dd5f72d60d041011abd
parente5984241ab8d7ca75eb3e5e893d63adb017ed0f5 (diff)
present/wnmd: Allow flipping if the window pixmap matches the toplevel's
Instead of testing window->redirectDraw. With Xwayland, the toplevel window is always redirected, so this would unnecessarily preclude flipping there in some cases, e.g. with wlroots based Wayland compositors or with fullscreen X11 windows in weston. Fixes issue #631. (Cherry picked from commit a093a88531599832811a1ba5cb85101af91a545e)
-rw-r--r--present/present_wnmd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/present/present_wnmd.c b/present/present_wnmd.c
index a2d9da8fb..9d0b147cc 100644
--- a/present/present_wnmd.c
+++ b/present/present_wnmd.c
@@ -270,8 +270,8 @@ present_wnmd_check_flip(RRCrtcPtr crtc,
if (!screen_priv->wnmd_info->flip)
return FALSE;
- /* Don't flip redirected windows */
- if (window->redirectDraw != RedirectDrawNone)
+ /* Can't flip redirected child windows */
+ if (screen->GetWindowPixmap(window) != screen->GetWindowPixmap(toplvl_window))
return FALSE;
/* Source pixmap must align with window exactly */