Commit a093a885 authored by Michel Dänzer's avatar Michel Dänzer Committed by Adam Jackson
Browse files

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.
parent ff560488
Pipeline #16986 passed with stages
in 1 minute and 17 seconds
......@@ -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 */
......
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