summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <bob@o-hand.com>2010-01-27 20:38:38 +0000
committerKeith Packard <keithp@keithp.com>2010-02-25 11:43:37 -0800
commit4b55b2cf8a52c39b53bae11cd1bc7314481d4c86 (patch)
treeb57451f20ac8ab3997e5cb6a8c4e09d53dab5572
parent780c95caf9888fa4548dfe4c1c78a7e7ce99a9ed (diff)
DRI2: initialize event->drawable in DRI2SwapEvent
We weren't initialising the drawable in the event structure so the client side DRI2WireToEvent used for translating the event into a GLX event wouldn't be able to lookup up the corresponding GLXDrawable before passing the event on. Signed-off-by: Robert Bragg <robert@linux.intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xfree86/dri2/dri2ext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/dri2/dri2ext.c b/hw/xfree86/dri2/dri2ext.c
index 3e6b03e4e..bd92fd304 100644
--- a/hw/xfree86/dri2/dri2ext.c
+++ b/hw/xfree86/dri2/dri2ext.c
@@ -353,10 +353,12 @@ DRI2SwapEvent(ClientPtr client, void *data, int type, CARD64 ust, CARD64 msc,
CARD64 sbc)
{
xDRI2BufferSwapComplete event;
+ DrawablePtr pDrawable = data;
event.type = DRI2EventBase + DRI2_BufferSwapComplete;
event.sequenceNumber = client->sequence;
event.event_type = type;
+ event.drawable = pDrawable->id;
event.ust_hi = (CARD64)ust >> 32;
event.ust_lo = ust & 0xffffffff;
event.msc_hi = (CARD64)msc >> 32;