Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview is being built... Preview will be available at https://egui-pr-preview.github.io/pr/8947-egui-winit-no-repaint-on-moved View snapshot changes at kitdiff |
thainduy
marked this pull request as ready for review
November 25, 2026 15:18
This branch has not been deployed
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.
WindowEvent::Movedno longer requests a repaint. Moving a window needs no new frame: the compositor shows the last frame at the new position. Today everyMoved(one per step of a title-bar drag on Windows, X11 and macOS; Wayland sends none) draws and presents a full frame.On one machine (Windows 11, RTX 4070 Ti SUPER, DX12, 144 Hz), dragging the window drew 144 frames per second before and 0 after, and the window trailed the cursor less (mean 2.2 px → 0.6 px). Repro and numbers are in the issue.
Unchanged:
Resized,ScaleFactorChanged,RedrawRequested,FocusedandOccludedstill repaint, so DPI changes, top/left resizes on macOS and exposed content still get a frame. Window position saved on exit readsouter_position()directly.Visible effect:
ViewportInfo::outer_rectandmonitor_sizenow update on the next frame (the next input) instead of during the drag, so a UI that shows the window position, or a child viewport placed relative to it, stays put until then. Apps that need it can callrequest_repaint.Tested on Windows only; not on macOS or Linux.
🤖 Generated with Claude Code