mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 11:40:06 +01:00
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.
This commit is contained in:
parent
ff56048855
commit
a093a88531
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue