Add detectPlatform to always use wayland in a wayland session
ClosedPublic

Authored by fvogt on Jul 19 2019, 3:17 PM.

Details

Summary

It's possible that Qt uses the xcb platform by default even in a Wayland
session, so detect such cases and switch to wayland instead to enable
proper support for remote input. Copy code from libkworkspace to not
introduce a dependency.

Test Plan

Started kdeconnectd, uses wayland platform now. Remote input works.

Diff Detail

Repository
R224 KDE Connect
Branch
1.x
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14134
Build 14152: arc lint + arc unit
fvogt created this revision.Jul 19 2019, 3:17 PM
Restricted Application added a project: KDE Connect. · View Herald TranscriptJul 19 2019, 3:17 PM
fvogt requested review of this revision.Jul 19 2019, 3:17 PM
nicolasfella accepted this revision.Jul 19 2019, 3:19 PM
This revision is now accepted and ready to land.Jul 19 2019, 3:19 PM
fvogt closed this revision.Jul 19 2019, 5:57 PM

Should this be merged to master in addition of 1.x?

fvogt added a comment.Jul 19 2019, 9:12 PM

Should this be merged to master in addition of 1.x?

Yup, I attempted that shortly before dinner but got a ton of merge conflicts