When switching from "normal" mode to desktop window mode, I first
save the current attributes of the window, then set a few for
desktop mode. When I restore to "normal" mode, I set the saved
attributes back. However, when it comes back, the window ignores
clicks.
I do something like this when entering desktop mode:
::GetWindowAttributes(mWindow, &mDesktopModeSavedAttrs);
ChangeWindowAttributes(kWindowDoesNotCycleAttribute
| kWindowNoShadowAttribute
| kWindowIgnoreClicksAttribute,
kWindowNoAttributes);
When ending desktop mode:
ChangeWindowAttributes(mDesktopModeSavedAttrs,
~mDesktopModeSavedAttrs);
This seems like it should work, but I can no longer grow the window
or drag it. It's as if the ignore clicks attribute is not cleared.
So I tried to clear it explicitly after restoring the window, and it
still doesn't work. Am I missing something else?