Skip to content

Fix frameless window drag lagging the pointer - #215

Merged
huacnlee merged 2 commits into
mainfrom
fix/standalone-window-drag-lag
Sep 15, 2026
Merged

huacnlee merged 2 commits into
mainfrom
fix/standalone-window-drag-lag

Conversation

@huacnlee

Copy link
Copy Markdown
Owner

Release Notes

  • Dragging the standalone window by the title bar now follows the pointer instead of trailing it. Resizing from a corner uses the same compositor path.
  • Message list hover is no longer re-evaluated for every row while the window is being moved.

Why

The frameless window starts a system move from the title bar. That used a MouseArea, which keeps the mouse grab and keeps delivering moves into QML while AppKit is already dragging the window. The scene graph then tries to keep up, so the window lags the cursor.

The handler now has no target, so it asks the window system to move and does not move an item of its own. On macOS the native window also keeps its backing store during live move/resize, so the window server does not wait on a full Qt Quick frame for each pointer event. List rows already had a HoverHandler for hot; the covering MouseArea no longer also tracks hover.

This is motion, not a visual redesign. The title bar and corners look the same.

Verification

  • QT_QPA_PLATFORM=offscreen ctest --test-dir app/build -R tst_standalone_composition — drag area stays enabled and dragsTheWindow is true (handler target is null).
  • qmltestrunner -input ui/tests/qml/tst_hover_under_scroll.qml
  • Built omamail-app with the macOS window helper.

A title-bar MouseArea kept the grab and delivered moves into QML while
the compositor was already dragging, so the window trailed the cursor.
Move and resize now use a DragHandler with no target, macOS keeps the
backing store during live move, and list rows no longer re-enter hover
on every pixel of that move.
@github-actions

Copy link
Copy Markdown
Contributor

CI failed at ebbf6df (run). What each failed gate needs:

Portable tests failed

The Rust, JavaScript and portable shell suites, the release checks or the contract inventory did not pass. Run the same set locally and read the first failing name in the log:

make test-rust test-js test-shell-portable
python3 tests/test_backend_release.py
python3 app/tests/test_release_workflow.py
python3 scripts/package-backend.py check-api
git diff --check

Fix, push, and the gates run again; this comment updates itself.

The drag-area comment said the same thing twice and put the file 27
bytes over the 128KiB limit that test_source.sh enforces.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@huacnlee
huacnlee merged commit d6525b3 into main Sep 15, 2026
12 checks passed
@huacnlee
huacnlee deleted the fix/standalone-window-drag-lag branch September 15, 2026 07:22
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.

1 participant