summaryrefslogtreecommitdiff
path: root/src/glx
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2010-04-13 09:38:41 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-04-13 09:39:28 -0700
commit157bdd1446dd21cc87a89abdc890b2f6dc83af76 (patch)
treea32475e450110efc0c460ceebe0196b3c8eb5547 /src/glx
parent497b66094df5bfeb210ab0ebbdcf1e0b811b001a (diff)
DRI2: report swap events correctly in direct rendered case
In the direct rendered case, we need to convert DRI2 swap complete events to GLX events for the client to consume. This path had what looks like a stray "& 0x75" from some earlier debugging that prevented clients from seeing the right event code.
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/dri2.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glx/dri2.c b/src/glx/dri2.c
index 80c125e741..6afa414965 100644
--- a/src/glx/dri2.c
+++ b/src/glx/dri2.c
@@ -101,8 +101,7 @@ DRI2WireToEvent(Display *dpy, XEvent *event, xEvent *wire)
GLXBufferSwapComplete *aevent = (GLXBufferSwapComplete *)event;
xDRI2BufferSwapComplete *awire = (xDRI2BufferSwapComplete *)wire;
aevent->serial = _XSetLastRequestRead(dpy, (xGenericReply *) wire);
- aevent->type =
- (glx_info->codes->first_event + GLX_BufferSwapComplete) & 0x75;
+ aevent->type = glx_info->codes->first_event + GLX_BufferSwapComplete;
aevent->send_event = (awire->type & 0x80) != 0;
aevent->display = dpy;
aevent->drawable = awire->drawable;