feat(xkeyboard): Switch layout group on click

When serveral layout groups are defined for the keyboard
they can be cycled when clicking on the module.

   For example:

   $ setxkbmap -layout us,sv,fr

Ref #84
This commit is contained in:
Michael Carlberg
2016-12-16 11:26:28 +01:00
parent f50f43af02
commit 519172b6ec
6 changed files with 50 additions and 2 deletions

View File

@ -262,6 +262,8 @@ void controller::wait_for_eventloop() {
}
bool controller::on(const sig_ev::process_update& evt) {
bool force{evt.data()->flag};
if (!m_bar) {
return false;
}