Repository navigation
Fix frameless window drag lagging the pointer - #215
Merged
Merged
Conversation
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.
Contributor
|
CI failed at ebbf6df (run). What each failed gate needs: Portable tests failedThe 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: 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release Notes
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
HoverHandlerforhot; the coveringMouseAreano 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 anddragsTheWindowis true (handler target is null).qmltestrunner -input ui/tests/qml/tst_hover_under_scroll.qmlomamail-appwith the macOS window helper.