You would need one HDMI distribution amp (1x2) that would give you two HDMI outputs for the Xbox and one HDMI input selector to chose either the PC or Xbox as your source on the monitor.
If your monitor has another input you can use for the PC eliminating the need for the switch.
The video resolution of the Xbox will default to the lower resolution of the TV or monitor.