cocoa_common: move tracking area setup to updateTrackingAreas

This makes the tracking area work when going in and out of fullscreen.
cocoa_common: fix style
cocoa_common: fix regression in draggable state computation

Regression introduced in 8fb064de5. Prevented the OSC from working correctly.