Turn switch statement into a hash
Summary: This way we can reverse-lookup if we ever want the opposite information.
Reviewers: KWin, romangg
Reviewed By: KWin, romangg
Subscribers: zzag, kwin
Tags: KWin
Differential Revision: https://phabricator.kde.org/D25763