cocoa: fix resize flickering again