Skip to content
  • Martin Flöser's avatar
    [libinput] Find screen for touch screen devices and calibrate accordingly · 68698b42
    Martin Flöser authored
    Summary:
    This change finds the screen for a touch screen device based on:
     * number available screens
     * output name defined on the touch screen device
     * internal screen
     * and physical size
    
    The id of the screen is stored in the Device allowing to adjust the
    touch points accordingly. This means instead of transferring to the
    combined display size the touch points are transferred into the output
    space and the position of the output is added. Thus in a multi screen
    system the touch points are properly mapped to the output.
    
    Furthermore the screen orientation is passed to the Device and a
    calibration matrix is set accordingly. Thus a transformed screen has the
    touch screen transformed accordingly.
    
    Please note that this only affects libinput on Wayland and not on X11!
    The x11 standalone platform needs to gain similar code.
    
    Reviewers: #kwin, #plasma
    
    Subscribers: plasma-devel, kwin
    
    Tags: #kwin
    
    Differential Revision: https://phabricator.kde.org/D8748
    68698b42