Fix canexchange conditions

Code from Daniel Stone.
Now Chromium will hit this fast path when system window decorations are
disabled, when maximized, full screen, and windowed.