macosx: Use enum to distinguish different events for playlist / main window states

No functional change.