I think this function is redundant.

The only circumstance in which you're going to care about whether or not the parent window got a ConfigureNotify event is when it is windowed, but in that case, SetWindow will always be called because XBMC_VIDEORESIZE will always cause a call SetWindowResolution and SetVideoResolution with the new size. Calling XResizeWindow with the same size doesn't hurt.

In any event, if we really *do* care about ConfigureNotify events, then this function is named a bit strangely (which is what initially drew me to it). First of all, the name of the function implies that it returns a constant value, which it doesn't, because it modifies the internal value after returning a copy of it. Second of all, while "Structure" is X11-speak for "Window", that's not obvious to other people who might have to maintain this branch.