dri2: Track event mask in client code.
authorNick Bowler <nbowler@draconx.ca>
Wed, 14 Jul 2010 16:01:49 +0000 (12:01 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 14 Jul 2010 17:23:09 +0000 (10:23 -0700)
commitf8d81c31cee30821da3aab331a57f484f6a07a5d
tree4cc95206c52314c402a87b0943c2ad5272406697
parent467928c6e01d66ea83d90df9903c2a8f0e675240
dri2: Track event mask in client code.

When direct rendering is being used, DRI2 BufferSwapComplete events are
sent unconditionally to clients, even if they haven't been requested.
This causes error messages to be printed by every freeglut application
of the form

  freeglut (./gears): Unknown X event type: 104

and might confuse other clients.

This is a fixed up version of the patch by Jesse Barnes, which drops
BufferSwapComplete events if they are not requested by clients.

Fixes fdo bug 27962.

Signed-off-by: Nick Bowler <nbowler@draconx.ca>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
src/glx/dri2.c
src/glx/glx_pbuffer.c
src/glx/glxclient.h