summaryrefslogtreecommitdiff
path: root/xserver/present
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2019-12-12 06:05:21 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2019-12-12 06:05:21 +0000
commitdff4a3473cbf3db68b2fa5b43e51f8c05ae6b029 (patch)
treeae898a699dbc977738010eaae623435d2ccee50a /xserver/present
parent005295117c63143b3bf6d69d4503b360e660cf49 (diff)
Update to X server 1.20.6. Tested by naddy@
Diffstat (limited to 'xserver/present')
-rw-r--r--xserver/present/present_scmd.c8
-rw-r--r--xserver/present/present_wnmd.c2
2 files changed, 3 insertions, 7 deletions
diff --git a/xserver/present/present_scmd.c b/xserver/present/present_scmd.c
index 3b7fbd832..6a580cb7a 100644
--- a/xserver/present/present_scmd.c
+++ b/xserver/present/present_scmd.c
@@ -78,7 +78,7 @@ present_check_flip(RRCrtcPtr crtc,
PresentFlipReason *reason)
{
ScreenPtr screen = window->drawable.pScreen;
- PixmapPtr screen_pixmap, window_pixmap;
+ PixmapPtr window_pixmap;
WindowPtr root = screen->root;
present_screen_priv_ptr screen_priv = present_screen_priv(screen);
@@ -99,9 +99,8 @@ present_check_flip(RRCrtcPtr crtc,
return FALSE;
/* Make sure the window hasn't been redirected with Composite */
- screen_pixmap = screen->GetScreenPixmap(screen);
window_pixmap = screen->GetWindowPixmap(window);
- if (window_pixmap != screen_pixmap &&
+ if (window_pixmap != screen->GetScreenPixmap(screen) &&
window_pixmap != screen_priv->flip_pixmap &&
window_pixmap != present_flip_pending_pixmap(screen))
return FALSE;
@@ -127,8 +126,7 @@ present_check_flip(RRCrtcPtr crtc,
window->drawable.x != pixmap->screen_x || window->drawable.y != pixmap->screen_y ||
#endif
window->drawable.width != pixmap->drawable.width ||
- window->drawable.height != pixmap->drawable.height ||
- pixmap->devKind != screen_pixmap->devKind) {
+ window->drawable.height != pixmap->drawable.height) {
return FALSE;
}
diff --git a/xserver/present/present_wnmd.c b/xserver/present/present_wnmd.c
index 9d0b147cc..82bae4022 100644
--- a/xserver/present/present_wnmd.c
+++ b/xserver/present/present_wnmd.c
@@ -649,8 +649,6 @@ present_wnmd_abort_vblank(ScreenPtr screen, WindowPtr window, RRCrtcPtr crtc, ui
present_window_priv_ptr window_priv = present_window_priv(window);
present_vblank_ptr vblank;
- assert(crtc);
-
(*screen_priv->wnmd_info->abort_vblank) (window, crtc, event_id, msc);
xorg_list_for_each_entry(vblank, &window_priv->exec_queue, event_queue) {