diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-03-19 21:19:58 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2019-03-19 21:19:58 +0000 |
commit | 20cdf7268f0006bb9ffa593ffd2235295b561f51 (patch) | |
tree | d931fee6ce2111c6a9a875a00ea0a035dd95e41e /xserver/present | |
parent | c5e7388ec138dcbf9c68c208cb4764841a0208be (diff) |
Update to xserver 1.19.7. Tested by jca@ and stsp@.
Diffstat (limited to 'xserver/present')
-rw-r--r-- | xserver/present/present.c | 8 | ||||
-rw-r--r-- | xserver/present/present_event.c | 5 | ||||
-rw-r--r-- | xserver/present/present_priv.h | 5 | ||||
-rw-r--r-- | xserver/present/present_request.c | 4 |
4 files changed, 7 insertions, 15 deletions
diff --git a/xserver/present/present.c b/xserver/present/present.c index 86743c504..7d428fca7 100644 --- a/xserver/present/present.c +++ b/xserver/present/present.c @@ -222,13 +222,13 @@ present_vblank_notify(present_vblank_ptr vblank, CARD8 kind, CARD8 mode, uint64_ int n; if (vblank->window) - present_send_complete_notify(vblank->window, kind, mode, vblank->serial, ust, crtc_msc - vblank->msc_offset, vblank->client); + present_send_complete_notify(vblank->window, kind, mode, vblank->serial, ust, crtc_msc - vblank->msc_offset); for (n = 0; n < vblank->num_notifies; n++) { WindowPtr window = vblank->notifies[n].window; CARD32 serial = vblank->notifies[n].serial; if (window) - present_send_complete_notify(window, kind, mode, serial, ust, crtc_msc - vblank->msc_offset, vblank->client); + present_send_complete_notify(window, kind, mode, serial, ust, crtc_msc - vblank->msc_offset); } } @@ -788,7 +788,6 @@ present_execute(present_vblank_ptr vblank, uint64_t ust, uint64_t crtc_msc) int present_pixmap(WindowPtr window, PixmapPtr pixmap, - ClientPtr client, CARD32 serial, RegionPtr valid, RegionPtr update, @@ -899,7 +898,6 @@ present_pixmap(WindowPtr window, xorg_list_append(&vblank->window_list, &window_priv->vblank); xorg_list_init(&vblank->event_queue); - vblank->client = client; vblank->screen = screen; vblank->window = window; vblank->pixmap = pixmap; @@ -1019,7 +1017,6 @@ present_abort_vblank(ScreenPtr screen, RRCrtcPtr crtc, uint64_t event_id, uint64 int present_notify_msc(WindowPtr window, - ClientPtr client, CARD32 serial, uint64_t target_msc, uint64_t divisor, @@ -1027,7 +1024,6 @@ present_notify_msc(WindowPtr window, { return present_pixmap(window, NULL, - client, serial, NULL, NULL, 0, 0, diff --git a/xserver/present/present_event.c b/xserver/present/present_event.c index ac6f2555a..c222dd5ff 100644 --- a/xserver/present/present_event.c +++ b/xserver/present/present_event.c @@ -146,7 +146,7 @@ present_register_complete_notify(present_complete_notify_proc proc) } void -present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc, ClientPtr client) +present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc) { present_window_priv_ptr window_priv = present_window_priv(window); @@ -167,8 +167,7 @@ present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 se present_event_ptr event; for (event = window_priv->events; event; event = event->next) { - if (event->mask & PresentCompleteNotifyMask && - client == event->client) { + if (event->mask & PresentCompleteNotifyMask) { cn.eid = event->id; WriteEventsToClient(event->client, 1, (xEvent *) &cn); } diff --git a/xserver/present/present_priv.h b/xserver/present/present_priv.h index 41c37af7e..dfb4bdea9 100644 --- a/xserver/present/present_priv.h +++ b/xserver/present/present_priv.h @@ -52,7 +52,6 @@ struct present_notify { struct present_vblank { struct xorg_list window_list; struct xorg_list event_queue; - ClientPtr client; ScreenPtr screen; WindowPtr window; PixmapPtr pixmap; @@ -156,7 +155,6 @@ present_get_window_priv(WindowPtr window, Bool create); int present_pixmap(WindowPtr window, PixmapPtr pixmap, - ClientPtr client, CARD32 serial, RegionPtr valid, RegionPtr update, @@ -174,7 +172,6 @@ present_pixmap(WindowPtr window, int present_notify_msc(WindowPtr window, - ClientPtr client, CARD32 serial, uint64_t target_msc, uint64_t divisor, @@ -218,7 +215,7 @@ void present_send_config_notify(WindowPtr window, int x, int y, int w, int h, int bw, WindowPtr sibling); void -present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc, ClientPtr client); +present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc); void present_send_idle_notify(WindowPtr window, CARD32 serial, PixmapPtr pixmap, present_fence_ptr idle_fence); diff --git a/xserver/present/present_request.c b/xserver/present/present_request.c index 6997aa869..c7663fcc8 100644 --- a/xserver/present/present_request.c +++ b/xserver/present/present_request.c @@ -135,7 +135,7 @@ proc_present_pixmap(ClientPtr client) return ret; } - ret = present_pixmap(window, pixmap, client, stuff->serial, valid, update, + ret = present_pixmap(window, pixmap, stuff->serial, valid, update, stuff->x_off, stuff->y_off, target_crtc, wait_fence, idle_fence, stuff->options, stuff->target_msc, stuff->divisor, stuff->remainder, notifies, nnotifies); @@ -171,7 +171,7 @@ proc_present_notify_msc(ClientPtr client) } } - return present_notify_msc(window, client, stuff->serial, + return present_notify_msc(window, stuff->serial, stuff->target_msc, stuff->divisor, stuff->remainder); } |