Fix window dragging on Mavericks