cocoa_common: make the fullscreen transition only when necessary

This makes the cocoa backend follow more closely the new fullscreen semantics
added in c4b08a9a.