mirror of
https://codeberg.org/dwl/dwl-patches.git
synced 2025-09-08 12:14:50 +00:00
Add less-simple-touch-input
parent
0f86ace128
commit
2cc38a50f0
27
less-simple-touch-input.-.md
Normal file
27
less-simple-touch-input.-.md
Normal file
@ -0,0 +1,27 @@
|
||||
### Description
|
||||
Adds touchscreen functionality.
|
||||
|
||||
This patch was based on the [simple-touch-input](https://codeberg.org/dwl/dwl-patches/wiki/simple-touch-input) but instead of emulating mouse movement, this now forwards the appropriate event notifications to clients.
|
||||
|
||||
This patch may be used with or without the pointer-constraints branch from [anon_cvptw's repository](https://codeberg.org/anon_cvptw/dwl/src/branch/main).
|
||||
**To use this WITH pointer-constraints, you must add `#define POINTERCONSTRAINTS` to `config.h`.**
|
||||
|
||||
If you're maintaining this patch, be sure to watch for changes to the `motionabsolute` function in anon_cvptw's `main` branch:
|
||||
|
||||
The `touchdown` function in the patch incorporates the contents of the `motionabsolute` function (as modified by pointer-constraints), adds in the `wlr_cursor_warp_closest` call and then the button press.
|
||||
|
||||
If `motionabsolute` is modified, `touchdown` should [likely] mirror any of its modifications.
|
||||
|
||||
If/when anon_cvptw's pointer-constraints pull request is merged into the [upstream](https://codeberg.org/dwl/dwl) codebase, this remark will be removed from the simple-touch-input patch branch commit, and things will be significantly simplified.
|
||||
|
||||
KNOWN BUGS:
|
||||
- Sometimes, the pointer moves to where the screen is pressed, but the button press doesn't occur until the screen is touched AGAIN. This means that if you touch to click button 'Q' on the screen (for instance), nothing happens; then you touch elsewhere on the screen and THEN button 'Q' registers a click. This is annoying, doesn't always happen, and I don't yet know how to fix it.
|
||||
|
||||
### Download
|
||||
- [git branch](https://codeberg.org/minego/dwl/src/branch/touch)
|
||||
- [2024-02-11](https://codeberg.org/dwl/dwl-patches/raw/branch/main/less-simple-touch-input/less-simple-touch-input.patch)
|
||||
|
||||
### Authors
|
||||
- [minego](https://codeberg.org/minego)
|
||||
- [fauxmight](https://codeberg.org/fauxmight)
|
||||
- [Unprex](https://github.com/Unprex)
|
Loading…
x
Reference in New Issue
Block a user