watch the tabletMode from KWin
ClosedPublic

Authored by mart on Jan 26 2018, 10:56 AM.

Details

Summary

Add api in the C++ library that watches the tablet mode property exposed from
KWin. use dbus, but only on linux,bsd etc, not on Android, Windows etc.
connect it to Settings.isMobile which was already used for it (even tough
it introduces a naming inconsistence, but needed for retrocompatibility)

Test Plan

tested to switch on the fly on Wayland with the kwin tablet mode sensor working

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mart created this revision.Jan 26 2018, 10:56 AM
Restricted Application added projects: Plasma, Kirigami. · View Herald TranscriptJan 26 2018, 10:56 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested review of this revision.Jan 26 2018, 10:56 AM
davidedmundson accepted this revision.Apr 8 2018, 9:21 PM
This revision is now accepted and ready to land.Apr 8 2018, 9:21 PM
mart updated this revision to Diff 32380.Apr 17 2018, 11:53 AM
  • Merge branch 'master' into mart/tabletMode
  • separe isMobile and tabletmode concepts
  • Merge branch 'master' into mart/tabletMode
  • use tabletMode instead of isMobile where needed
  • new env var KDE_KIRIGAMI_TABLET_MODE
  • comments++
  • more comments
  • enable/disable the swipeitemeventfilter
This revision was automatically updated to reflect the committed changes.