Avoid X11 video mode setting if modes match.

This matches the behavior of the Windows port.