So, the trick is for us to do our resize without the WM noticing.
Before the resize, we set window-override-redirect for the window
to :on, and after our resize, we set it to :off. This works.
This is stated as a Convention in Section 4.2.9 of the ICCCM.