I would like to know whether there is a way to remove or cancel all the events(including pointer/joypad events) before closing a window server session. I am currently working on 7650 and I have create a separate window server session, window etc and also have a tight loop where I process only a few, related evetns. However, after exiting my app, the whole device slows down. I scanned the memory for leaks, but there were no problems. So, I thought it might be due to one of these event queues. Any help on this will be appreciated. Thanks in advance!