Bug 457703 - Feature to to map an area on the tablet surface to the entire screen
Summary: Feature to to map an area on the tablet surface to the entire screen
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_tablet (other bugs)
Version First Reported In: 6.2.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joshua Goins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-10 05:48 UTC by Raghavendra kamath
Modified: 2025-06-11 03:01 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.3.0
Sentry Crash Report:


Attachments
screenshot showing how tablet area is mapped in exisiting kcm (120.89 KB, image/png)
2022-08-10 05:48 UTC, Raghavendra kamath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2022-08-10 05:48:32 UTC
Created attachment 151213 [details]
screenshot showing how tablet area is mapped in exisiting kcm

SUMMARY
The recent feature addition to new graphic tablet kcm under Wayland is awesome and a huge relief. However currently it lacks an option to select a portion of the tablet surface to map that area to the screen [monitor] area. User can draw a custom area currently but this is for selecting the portion of the screen and not the tablet. While selecting a portion of the are of screen to limit tablet input to that area is good. Majority of users would choose to select a position of the tablet surface to map it to entire screen. A use case for this is user having a large non graphic tablet (the non display one) and wanting to use only a portion of the tablet surface for the screen.

STEPS TO REPRODUCE
1. Boot into neon unstable under wayland and go to tablet section in the system settings
2. try to select an are of the tablet to map it to entire screen. There is custom area but it only allows users to select the screen are and not the tablet area.


OBSERVED RESULT
No way to visually select tablet surface area to map it to entire screen

EXPECTED RESULT
User should be shown a graphic of the tablet currently they are using and a way to draw and select area of the tablet surface to map it to entire screen.

I am attaching a screenshot of the existing tablet KCM under xorg to show how it is achieved in it.
Comment 1 Joshua Goins 2024-12-14 15:47:02 UTC
This is now possible in 6.3 via editing config files, which I plan on support in ktabletconfig. I'm moving quickly to hopefully add a UI for this in time before release!
Comment 2 Nate Graham 2024-12-17 16:47:25 UTC
Was that fully implemented in https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2403, or is there more to do?
Comment 3 Joshua Goins 2024-12-17 16:53:42 UTC
(In reply to Nate Graham from comment #2)
> Was that fully implemented in
> https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2403, or is
> there more to do?

Implemented yes, but not too useful for the general user without a UI. I'm planning to slot that into 6.3, now that the nicer screen mapping UX is in.
Comment 4 Joshua Goins 2024-12-17 16:54:13 UTC
(In reply to Joshua Goins from comment #3)
> Implemented yes, but not too useful for the general user without a UI. I'm
> planning to slot that into 6.3, now that the nicer screen mapping UX is in.

Let's not close this until the UI is done :-)
Comment 5 Nate Graham 2024-12-17 16:55:23 UTC
Oh, I thought that was the UI!
Comment 6 Joshua Goins 2024-12-17 17:07:30 UTC
(In reply to Nate Graham from comment #5)
> Oh, I thought that was the UI!

There's a lot of confusing terminology of this feature, that MR is refactoring what already existed in the KCM: mapping the whole tablet area to part of your screen. The next thing I have to add is specifying a custom rectangle *of the tablet area* - not just the screen - which is what this bug report is about.
Comment 7 Bug Janitor Service 2024-12-22 21:06:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2680
Comment 8 Joshua Goins 2024-12-26 01:06:16 UTC
Git commit b55219d8888d695a8c9ad852c6f130128e648028 by Joshua Goins.
Committed on 26/12/2024 at 00:57.
Pushed by redstrate into branch 'master'.

kcms/tablet: Allow customizing the input area of a tablet

You sometimes want to be able to only use part of your tablet, e.g. it's
huge and uncomfortable to move a stylus across the whole of it's
surface.

This adds the ability to move and resize the input area to any arbitrary
rectangle.

M  +11   -2    kcms/libkwindevices/inputdevice.cpp
M  +18   -0    kcms/libkwindevices/inputdevice.h
M  +5    -2    kcms/tablet/ui/DisplayTab.qml
M  +136  -29   kcms/tablet/ui/ExternalScreenMapping.qml
M  +6    -9    kcms/tablet/ui/Tablet.qml
M  +0    -1    kcms/tablet/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/b55219d8888d695a8c9ad852c6f130128e648028