[kcms] Adjust keyboard kcm so that it works on Wayland
ClosedPublic

Authored by graesslin on Feb 22 2016, 7:17 AM.

Details

Summary

So far the keyboard kcm was forced to X11 only. But that is not required,
also on Wayland xkb is used for keyboard layouts. Thus everything which
is not X11 specific can also work on Wayland. In fact KWin reads the
keyboard layout information from the configuration file this kcm writes
to.

The important change here is that a default fallback rule name (evdev)
is used. On Wayland we are not yet able to resolve the rule name thus
the complete UI was disabled. With this change the UI is configurable
and works - one can change the layout in KWin.

Of course in the long run this needs better Wayland integration to
properly resolve the rule name.

Diff Detail

Repository
R119 Plasma Desktop
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin updated this revision to Diff 2426.Feb 22 2016, 7:17 AM
graesslin retitled this revision from to [kcms] Adjust keyboard kcm so that it works on Wayland.
graesslin updated this object.
graesslin edited the test plan for this revision. (Show Details)
graesslin added a reviewer: Plasma.
Restricted Application added a project: Plasma. · View Herald TranscriptFeb 22 2016, 7:17 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
sebas accepted this revision.Feb 22 2016, 12:37 PM
sebas added a reviewer: sebas.
This revision is now accepted and ready to land.Feb 22 2016, 12:37 PM
This revision was automatically updated to reflect the committed changes.