Core lose and gain focus events in SDL/Linux