feat(input): apply input rules on tablet and touch devices - #756
Conversation
|
@shuber2 your review/comment is also important for this one, since it's a follow-up to your tablet and touch patch series |
|
Ah, interesting. Yes, you address a real gap here. I only have a few seconds and then go for a short vacation trip until Monday, here are a few comments:
Maybe you can look at this? I am back next week. |
Enable the use of global and per-device input rules on tablets, tablet pads, and touchscreens. Accessories, such as tablet pens are not affected Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
|
Thanks for the review.
As it stands (before this patch), I am quite sure all rules are not applied for the new class of devices. At least they do not take effect on my touchscreen, regardless of how I define them in the config file. Having looked at the existing code further (after the review), it seems the assumption may have been made that TLDR; I think the commit message is fine.
Will add this. I don't have access to tablet and accessories so I am not sure what capabilities really exist and how they could be supported
I think this would be better as its own standalone patch. The existing pattern does work and can be discovered intuitively based on the existing documentation, but I can agree that implementing named rules could shorten it.
Not very likely afaict, and I believe |
Enable the use of global and per-device input rules on tablet, tablet pad, and touch devices.
Description
Allows applying input rules to the new device classes (tablet, pad, and touch), e.g. to disable a device or set other properties
Test Plan
Tested on-device, touch only. Tablet and pad NOT tested since I do not have access to such a device.
The following
$HOME/.config/somewm/rc.luasnippet:Result
The touchscreen is disabled while the display is off, so interacting with the touchscreen at that point does not wake the display
AI Usage
None
Checklist
lua/awful/,lua/gears/,lua/wibox/,lua/naughty/) are not modified — if a bug surfaces in Lua, the fix belongs in Cmake test-unit && make test-integration)