Try to grab keyboard several times
Try to grab mouse several times ininially
Re-raise window on SubstructureNotifyMask events