X11: fix incorrectly used screen num in desktop resolution