The center indicator isn't exactly at the center of the window, so this would fail sometimes. This is a quick workaround. Will all API to the dock indicator interface if this isn't enough.