There's a bug in the window system that causes the coordinate system for a window to become corrupted if the window is programatically moved while exposé is activated.
I'm currently developing my first OSX app. It's a widget that makes a picture move in and out of the screen, sort of like a peekaboo. When exposé is activated, the window just keeps moving ... which is kinda cool, but unfortunately causes a [self setFrameOrigin:NSMakePoint(0, 0)] to not move the window to the bottom left corner after Exposé is deactivated.
I thought I could fix it by detecting exposé and just not move the window while it was activated. Now I'm not really sure what I can do to work around this.