From 8d024a3efa6f76934bf828298278800b455ec7b0 Mon Sep 17 00:00:00 2001 From: minego Date: Tue, 26 Mar 2024 16:37:17 +0000 Subject: [PATCH] Update less-simple-touch-input --- less-simple-touch-input.-.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/less-simple-touch-input.-.md b/less-simple-touch-input.-.md index fd5d437..9d2fdc5 100644 --- a/less-simple-touch-input.-.md +++ b/less-simple-touch-input.-.md @@ -3,23 +3,12 @@ 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) +- [2024-03-26](https://codeberg.org/dwl/dwl-patches/raw/branch/main/less-simple-touch-input/less-simple-touch-input.patch) ### Authors - [minego](https://codeberg.org/minego) @@ -27,4 +16,5 @@ KNOWN BUGS: - [Unprex](https://github.com/Unprex) ### Changelog -- 2024-02-11 Corrected issue where motion events where not sending notifications for unfocused clients such as an on screen keyboard \ No newline at end of file +- 2024-02-11 Corrected issue where motion events where not sending notifications for unfocused clients such as an on screen keyboard +- 2024-03-26 Rebased, and removed #ifdef's for the pointer constraints patch which has been merged into upstream \ No newline at end of file