Continue trying to grab the keyboard until we succeed in doing so

If other grabbed keys (for example Super+L) are being pressed as we start up,
the XGrabKeyboard may fail.  For this reason, we need to try again until we
succeed.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>