Stylus/tablet click (ButtonPress) not registering in desktop (CEF) build when device uses absolute positioning — works in Relative mode, in browser, and with physical mouse
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先使用 Graphite desktop Flatpak 重现该问题,并以调查详情和 #2535 为背景,比较 CEF-based 输入处理对绝对模式和相对模式平板事件的处理方式。仅在必要时检查 preferences.ron,以使 disable_ui_acceleration 与此 bug 分开;当绝对模式下笔的 ButtonPress 和 ButtonRelease 事件在 UI 和 viewport 中正常工作,且不会使鼠标输入或相对模式输入发生回归时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Describe the Bug
On Linux (Flatpak build), a graphics tablet's pen click does not register in the desktop app's CEF-rendered UI or viewport when OpenTabletDriver is configured in Absolute mode (normal tablet-to-screen 1:1 mapping), even though:
- The exact same tablet/pen works correctly in the web version at https://editor.graphite.art/ (in Chromium), also in Absolute mode
- A physical USB mouse clicks normally in the desktop app
xdotool click 1(synthetic XTEST click) also fails to register in the desktop app- Switching OpenTabletDriver to Relative mode makes clicking work correctly in the desktop app — this isolates the bug to something specific about how absolute-positioning tablet devices are handled, since relative mode is otherwise unusable for real drawing (no 1:1 tablet-to-screen mapping)
Cursor motion from the tablet works perfectly in Absolute mode in the desktop app — only button press/release events fail to have any effect while in that mode.
Environment
- OS: Void Linux, X11 (picom compositor, XFCE)
- Graphite: desktop Flatpak build (
art.graphite.Graphite), downloaded ~July 2026 - Tablet driver: OpenTabletDriver 0.6.7 (Flatpak)
- Tablet: Huion H1161
- GPU: AMD (RADV/Mesa)
Steps To Reproduce
- Install OpenTabletDriver via Flatpak, configure tablet in Absolute mode ("Artist Mode" preset) with tip bound to Mouse Button: Left
- Install Graphite via Flatpak
- Launch Graphite desktop app
- Attempt to click/draw with the stylus tip on the canvas or any UI button
- Motion works; the click has no effect
- Switch OpenTabletDriver to Relative mode, click Apply, retest — clicking now works correctly
Investigation so far
xinput test-xi2confirms the pen'sButtonPress/ButtonReleasearrive as genuine X11 core-protocol events from the same device (OpenTabletDriver Virtual Tablet, XI2 id 19) that generates the working motion events — not routed through the XTEST virtual pointer (id 4)udevadm infoconfirms the OTD virtual device is taggedID_INPUT_MOUSE=1libinput list-devicesshows the OTD virtual device'sCapabilities: pointer, but itsDeviceChangedXI2 announcement in Absolute mode includes absolute X/Y valuators plus an XIScrollClass (relative horizontal/vertical scroll valuators) — attributes a plain mouse does not have- A real physical USB mouse (no absolute valuators, no scroll-class) clicks Graphite's UI/canvas without any issue in either mode
xdotool click 1(XTEST-injected click) also fails silently in the desktop app while in Absolute mode- Confirmed: switching the same physical tablet/driver to Relative mode (removing absolute valuators from the device's XI2 announcement) makes clicks work correctly again
This strongly suggests Graphite's CEF-embedded input handling (see #2535, the CEF-based desktop architecture) filters or mis-routes button events specifically from devices that report absolute positioning valuators, rather than a general click-handling bug — since motion, physical mouse clicks, and relative-mode tablet clicks all work fine, and only absolute-mode tablet clicks fail.
Additional Details
- Toggling Preferences → Render GUI on CPU (
disable_ui_accelerationinpreferences.ron) fixed an unrelated issue where the GUI failed to render at all, but did not affect this click bug. - Happy to provide further logs/testing (e.g.
libinput debug-events, CEF verbose logging flags) if useful for triage.
- 主要语言
- Rust
- 星标
- 27.8k
- 派生
- 1.3k
- 平均合并
- 10 小时 53 分钟
- 30 天内合并 PR
- 195
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GraphiteEditor/Graphite 的其他 Issue
-
`third-party-licenses` fails on Windows when the parent process is PowerShell可能已有人在做 @sahilshingate01 于 13 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
GraphiteEditor/Graphite#4745 · 1 条评论 ·
维护者通常 1 天内回复
-
Resizing a text box by one edge handle incorrectly locks both Max Width and Max Height, silently clipping text可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
GraphiteEditor/Graphite#4396 · 2 条评论 ·
维护者通常 1 天内回复
-
Type hint is selected in node graph view可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
GraphiteEditor/Graphite#4311 ·
维护者通常 1 天内回复
-
`cargo run` fails on WebAssembly target due to `CARGO_BUILD_TARGET` leaking into `rustc_codegen_spirv` build可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
GraphiteEditor/Graphite#3939 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 50/100
GraphiteEditor/Graphite#4901 ·
维护者通常 1 天内回复
查看 GraphiteEditor/Graphite 的全部 Issue
相似的 Issue
-
state:needs triage
难度 2/5 1-3 小时 新手友好度 75/100
zed-industries/zed#66543 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
ruffle-rs/rust-flash-lso#142 ·
-
area: docs type: docs
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
light-curve/light-curve-python#870 ·
维护者通常 1 天内回复
-
bug file-compat priority: high
难度 2/5 1-3 小时 新手友好度 76/100
storytold/photocraft#11330 · 1 条评论 ·
维护者通常 1 天内回复