working up state machine for xdg-monitor
further workup of xdg-monitor