Skip to content

feat: add touch input support#888

Open
WeraPea wants to merge 1 commit intomangowm:mainfrom
WeraPea:touch-pr
Open

feat: add touch input support#888
WeraPea wants to merge 1 commit intomangowm:mainfrom
WeraPea:touch-pr

Conversation

@WeraPea
Copy link
Copy Markdown
Contributor

@WeraPea WeraPea commented May 3, 2026

Originally authored by @horriblename based on dwl-patches/touch-input: #426

Initial patch changes:

  • removed duplicate declaration of createtouch
  • touch motion events now track the surface detected at touch down, rather than whatever surface is under the finger at motion time

Subsequent fixes and improvements:

  • fix: prevent client focus loss on touch interaction with layer surfaces
  • fix: correct emulation of cursor pointer from unhandled touch events
  • opt: hide cursor on touchdown
  • fix: prevent crash when touch motion occurs over layer surfaces
  • fix: use scene node coordinates for touch motion events
  • opt: remove sloppyfocus guards from touch focus
  • opt: handle touch_cancel event
  • fix: drop events for cancelled touch points
  • fix: correct touch motion surface-local coordinate calculation

Originally authored by Ching Pei Yang (horriblename) <badnam3o.0@gmail.com>
based on dwl-patches/touch-input:
https://codeberg.org/dwl/dwl-patches/src/branch/main/patches/touch-input/touch-input.patch

Initial patch changes:
- removed duplicate declaration of `createtouch`
- touch motion events now track the surface detected at touch down,
  rather than whatever surface is under the finger at motion time

Subsequent fixes and improvements:
- fix: prevent client focus loss on touch interaction with layer surfaces
- fix: correct emulation of cursor pointer from unhandled touch events
- opt: hide cursor on touchdown
- fix: prevent crash when touch motion occurs over layer surfaces
- fix: use scene node coordinates for touch motion events
- opt: remove sloppyfocus guards from touch focus
- opt: handle touch_cancel event
- fix: drop events for cancelled touch points
- fix: correct touch motion surface-local coordinate calculation

Co-authored-by: Ching Pei Yang <badnam3o.0@gmail.com>
@azrtareef
Copy link
Copy Markdown

is the cursor being hidden while using the touchscreen the expected behaviour?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants