Add support for keyboard layout switching policy "window"
Summary:
This policy stores the layout for each window which becomes active
and restores the layout once it gets activated again.
Test Plan: Added test case
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D5315