Here's what I have so far.
turn on override_redirect, move+resize window