Regarding foreign windows, we don't try to move them, so this should work from WindowPosChanged perspective, and I created a separate path in ConfigureNotify to handle them, and as they aren't decorated it's possible to compute their parent relative position from X coordinates only.