Move call and console windows by touch on Linux #83

Closed
asxpi wants to merge 1 commit from fix/call-window-touch into develop
Member

Closes #82.

On Linux a finger could not move a call's window (its title bar or the minimised tile) or an XML console's window; a touch drag only resized them.

  • Cause: the tile called tao's startDragging(), which follows the pointer only. The shell's touch-aware move and edge resize (window_frame.rs on_touch / touch_move / begin_resize) were wired to the main window alone, and the console/call shell stubbed startTouchDragging out.
  • Shell: touch handling is per window now. The first finger remembers its window, window_touch_move moves the calling window only, and the edge resize reads the window the touch began on. It is hooked on call and console windows (touch_window), and allow-window-touch-move is added to call.json and xml-console.json.
  • UI: a finger's tile drag goes through window_touch_move (drag(touch)), and the console/call shell no longer stubs the touch move.

Tests:

  • tsc clean; the full UI suite passes (4914 passed, 8 skipped).
  • cargo check --all-targets and clippy clean in the web image.
  • The shell's app tests under broadway pass (470), with new cases checking that a console window and a call window let a middle touch through to the page and may call window_touch_move. A real move isn't exercised there, because broadway emulates one move-resize per run.
  • One of four runs failed on a timeout waiting for an event; the other three passed.

Not tested on real touch hardware yet.

🤖 Generated with Claude Code

Closes #82. On Linux a finger could not move a call's window (its title bar or the minimised tile) or an XML console's window; a touch drag only resized them. - **Cause:** the tile called tao's `startDragging()`, which follows the pointer only. The shell's touch-aware move and edge resize (`window_frame.rs` `on_touch` / `touch_move` / `begin_resize`) were wired to the main window alone, and the console/call shell stubbed `startTouchDragging` out. - **Shell:** touch handling is per window now. The first finger remembers its window, `window_touch_move` moves the calling window only, and the edge resize reads the window the touch began on. It is hooked on call and console windows (`touch_window`), and `allow-window-touch-move` is added to `call.json` and `xml-console.json`. - **UI:** a finger's tile drag goes through `window_touch_move` (`drag(touch)`), and the console/call shell no longer stubs the touch move. Tests: - `tsc` clean; the full UI suite passes (4914 passed, 8 skipped). - `cargo check --all-targets` and clippy clean in the web image. - The shell's app tests under broadway pass (470), with new cases checking that a console window and a call window let a middle touch through to the page and may call `window_touch_move`. A real move isn't exercised there, because broadway emulates one move-resize per run. - One of four runs failed on a timeout waiting for an event; the other three passed. Not tested on real touch hardware yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A finger could not move a call's window or an XML console's: a touch
drag on their title bar or on the call tile only resized them. The tile
asked tao's startDragging(), which follows the pointer and ignores a
touch, and the shell's touch-aware move and edge resize
(window_frame.rs on_touch, touch_move, begin_resize) were wired to the
main window alone, so the page's window_touch_move from another window
moved nothing and the console shell stubbed it out.

Make the touch handling per window: the first finger remembers the
window it went down on, window_touch_move moves the calling window
only, and an edge resize reads the window it began on (only the main
window draws a shadow margin). Hook it on the call and console windows
when they are made, grant window_touch_move in their capabilities,
send a finger's tile drag through it, and drop the console shell's
stub.

Closes #82

Assisted-by: Claude:opus-5-5
Author
Member

Superseded by the upstream fix merged in 3b6bcaa6 (fix/i82-call-window-touch), released in 0.8.0-beta4. Closing.

Superseded by the upstream fix merged in 3b6bcaa6 (fix/i82-call-window-touch), released in 0.8.0-beta4. Closing.
asxpi closed this pull request 2026-11-04 03:28:43 +00:00

Pull request closed

Sign in to join this conversation.
No description provided.