Repository navigation
fix(linux): map virtual touch and pen devices to streamed outputs - #221
Open
ReenigneArcher wants to merge 4 commits into
Open
ReenigneArcher wants to merge 4 commits into
ReenigneArcher wants to merge 4 commits into
Conversation
Member
Author
|
9 of 18 tasks
Keep fixture state private behind explicit controls and isolate optional touchscreen assignment from contact emission to satisfy the remaining Sonar findings.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #221 +/- ##
==========================================
+ Coverage 73.17% 73.32% +0.15%
==========================================
Files 44 45 +1
Lines 9810 9865 +55
Branches 3651 3692 +41
==========================================
+ Hits 7178 7234 +56
- Misses 2026 2197 +171
+ Partials 606 434 -172
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 10 files with indirect coverage changes Continue to review full report in Codecov by Harness.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Linux compositors can keep virtual touchscreens and pen tablets assigned to the default monitor even when the application streams another display. Add an optional
PointerViewport::output_namehint and map the library-owned event node to that connector through KWin's session D-Bus API. Pen assignment also disables workspace-wide mapping.Only confirmed assignments are cached. Unavailable capability probes are retried on later events, device-registration races receive bounded retries, and failed assignments stop input submission. GIO support is optional; other compositors retain their existing mapping. Plasma 6.5.1 or later is recommended for reliable output reassignment.
Screenshot
Issues Fixed or Closed
Roadmap Issues
Testing
Validated locally on Linux in a Fedora container:
cmake --build cmake-build-linux-input-monitor --target test_libvirtualhid cmake-build-linux-input-monitor/tests/test_libvirtualhid --gtest_filter='-LinuxConsumerTest.*:LinuxRuntimeTest.LinuxUhidSmokeTestRequiresPrerequisites:LinuxRuntimeTest.LinuxUinputSmokeTestRequiresPrerequisites'The container lacks
/dev/uinput,/dev/uhid, and a real KDE session. The 21 installed-device tests were excluded; physical multi-monitor touch/pen behavior remains unverified.Current-head validation: all 13 portable D-Bus mapping tests passed natively, including a new unavailable-then-available KWin capability regression that failed before the cache fix. The mapping helper reached 100% line, function, and branch coverage. The GIO-disabled source syntax check and strict Dockle/Doxygen 1.18.0 documentation build passed (167 themed HTML pages); Read the Docs build 35685315 also passed for
86da2c2. The macOS library/examples build passed after the Sonar refactor. Linux uinput cases on the latest changes await hosted CI; the earlier 161-test Linux run is recorded above.Type of Change
Checklist
AI Usage
See our AI usage policy.
Codex assisted with investigation, implementation, regression tests, documentation, and this PR description.