From the legend of Qin Hui (
秦桧) and his wife plotting at the east window of their home to frame general Yue Fei (
岳飞).
东窗事发 (the east-window plot comes to light) is the related phrase.
东窗计 names the plot itself — shorthand for treachery against a loyal hero.