xrandr: make sure that output_id and old_mode are declared
xrandr: don't restore resolution if output was disconnected during game
xrandr: move restore resolution to separated function because it makes a mess...