summaryrefslogtreecommitdiff
path: root/present/present_event.c
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2017-12-22 19:26:16 +0000
committerJon Turney <jon.turney@dronecode.org.uk>2017-12-22 19:26:16 +0000
commit392ac678b43f5ed414e5256ab9f525520639136b (patch)
tree33d400f596d21dd4315bb0ff4a46570bf0f95738 /present/present_event.c
parent0747136257c4e6b9f1a93addd448cd820b7418a1 (diff)
parentebfb06b11955a6c32500b7086be912ab96b753a7 (diff)
Merge tag 'xorg-server-1.19.6' into cygwin-release-1.19xserver-cygwin-1.19.6-1
xorg-server-1.19.6
Diffstat (limited to 'present/present_event.c')
-rw-r--r--present/present_event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/present/present_event.c b/present/present_event.c
index c222dd5ff..ac6f2555a 100644
--- a/present/present_event.c
+++ b/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)
+present_send_complete_notify(WindowPtr window, CARD8 kind, CARD8 mode, CARD32 serial, uint64_t ust, uint64_t msc, ClientPtr client)
{
present_window_priv_ptr window_priv = present_window_priv(window);
@@ -167,7 +167,8 @@ 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) {
+ if (event->mask & PresentCompleteNotifyMask &&
+ client == event->client) {
cn.eid = event->id;
WriteEventsToClient(event->client, 1, (xEvent *) &cn);
}