cocoa_common: fix problems with alt-tab window changes