[PATCH] DRI2/GLX: fix swap event handling