Skip to content
  • Fabian Vogt's avatar
    Add detectPlatform to always use wayland in a wayland session · 2a687146
    Fabian Vogt authored and Albert Vaca Cintora's avatar Albert Vaca Cintora committed
    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.
    
    Reviewers: #kde_connect, nicolasfella
    
    Reviewed By: #kde_connect, nicolasfella
    
    Subscribers: kdeconnect
    
    Tags: #kde_connect
    
    Differential Revision: https://phabricator.kde.org/D22562
    2a687146