Set focus to maximized windows and reset it afterwards

Signed-off-by: Simon Busch <morphis@gravedo.de>