Properly use XAllowEvents and XGrabButton