The green hat guy seems to be Wehrmacht, the brown hat guy seems to be Soviet. Neither army was very nice to each other, or very tolerant of the gays.

By the end of the war, the Soviet army had actually conquered/mass arrested the soldiers in the Wehrmacht, so outside the bedroom the green hat guy would be the prisoner of the brown hat guy.

...which is what makes this picture extra kinky.