https://bugs.kde.org/show_bug.cgi?id=500124

--- Comment #2 from Stefano Caruso Corrado <[email protected]> ---
Quck update
I found out that libinput already distinguishes standalone tablets from pen
displays!
libinput already exposes a way to tell them apart:
    - Pen display: exposes both LIBINPUT_DEVICE_CAP_TABLET_TOOL and
LIBINPUT_DEVICE_CAP_TOUCH
    - Standalone tablet: exposes LIBINPUT_DEVICE_CAP_TABLET_TOOL and
LIBINPUT_DEVICE_CAP_POINTER instead

In KWin's Device class terms this maps directly to isTouch() vs isPointer(),
which means the guard in applyScreenToDevice() could potentially be scoped like
this:
if (!device->isTabletTool() || device->isTouch()) {
    // TODO: this is currently non-functional even on DRM. Needs orientation()
override there.
    device->setOrientation(Qt::PrimaryOrientation);
}
This would skip the orientation reset only for standalone tablets, while
leaving pen displays unaffected for the future auto-orientation use case the
TODO comment describes.

Hope this helps narrow things down further!

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to