Repository navigation
Conversation
|
Preview available at https://egui-pr-preview.github.io/pr/8656-eframe-zoom-independent-window-size View snapshot changes at kitdiff |
crmne
added a commit
to crmne/zapfast
that referenced
this pull request
Oct 3, 2026
The shared forks now carry four fixes every app on them wanted: - winit orders a dropped macOS window out before closing it. On Touch Bar Macs AppKit threw while tearing the window down, and the closed window stayed on screen, looking frozen (#260, rust-windowing/winit#4728). - egui moves the accessibility focus to the root when the focused widget has no node yet, which crashed renaming a group on Windows (#313, emilk/egui#8621). - eframe falls back to a compatibility-profile OpenGL context, so drivers without OpenGL 3.3 or ES through WGL can still start the app (#349, emilk/egui#8655). - eframe saves the zoom factor with the window size, so a window no longer shrinks each time it reopens at a zoom other than 100% (#293, emilk/egui#8656). ZapFast's own window_builder hook for that is removed: with the fixed eframe it would scale the size twice.
intellq
pushed a commit
to intellq/zapfast
that referenced
this pull request
Oct 3, 2026
The shared forks now carry four fixes every app on them wanted: - winit orders a dropped macOS window out before closing it. On Touch Bar Macs AppKit threw while tearing the window down, and the closed window stayed on screen, looking frozen (crmne#260, rust-windowing/winit#4728). - egui moves the accessibility focus to the root when the focused widget has no node yet, which crashed renaming a group on Windows (crmne#313, emilk/egui#8621). - eframe falls back to a compatibility-profile OpenGL context, so drivers without OpenGL 3.3 or ES through WGL can still start the app (crmne#349, emilk/egui#8655). - eframe saves the zoom factor with the window size, so a window no longer shrinks each time it reopens at a zoom other than 100% (crmne#293, emilk/egui#8656). ZapFast's own window_builder hook for that is removed: with the fixed eframe it would scale the size twice. (cherry picked from commit 4b0f79b) Fork: vendor/winit recebe o diff fb8b24c..ed7caa9 do crmne/winit, mantendo o patch de posição do arrasto; fica o size_within_monitor do fork.
`WindowSettings::from_window` stores the inner size in points at the context's zoom factor, and eframe restores it into the context that builds the next window. Apps usually call `Context::set_zoom_factor` after that window exists, so the zoom factor there is still 1, and a window saved at a zoom factor of 1.25 came back 20% smaller on every start. Save the zoom factor next to the size, and have eframe express the size at the zoom factor the window is built with. Settings saved without it keep their size, as before; nothing changes at a zoom factor of 1.
crmne
force-pushed
the
eframe-zoom-independent-window-size
branch
from
October 14, 2026 21:17
b0b0717 to
7bd9491
Compare
Contributor
Author
|
Rebased onto #8687: the zoom factor now sits next to the size in |
caue-r
pushed a commit
to caue-r/zapfast
that referenced
this pull request
Nov 8, 2026
The shared forks now carry four fixes every app on them wanted: - winit orders a dropped macOS window out before closing it. On Touch Bar Macs AppKit threw while tearing the window down, and the closed window stayed on screen, looking frozen (crmne#260, rust-windowing/winit#4728). - egui moves the accessibility focus to the root when the focused widget has no node yet, which crashed renaming a group on Windows (crmne#313, emilk/egui#8621). - eframe falls back to a compatibility-profile OpenGL context, so drivers without OpenGL 3.3 or ES through WGL can still start the app (crmne#349, emilk/egui#8655). - eframe saves the zoom factor with the window size, so a window no longer shrinks each time it reopens at a zoom other than 100% (crmne#293, emilk/egui#8656). ZapFast's own window_builder hook for that is removed: with the fixed eframe it would scale the size twice.
aleliras
added a commit
to aleliras/zapfast
that referenced
this pull request
Nov 23, 2026
The shared forks now carry four fixes every app on them wanted: - winit orders a dropped macOS window out before closing it. On Touch Bar Macs AppKit threw while tearing the window down, and the closed window stayed on screen, looking frozen (crmne#260, rust-windowing/winit#4728). - egui moves the accessibility focus to the root when the focused widget has no node yet, which crashed renaming a group on Windows (crmne#313, emilk/egui#8621). - eframe falls back to a compatibility-profile OpenGL context, so drivers without OpenGL 3.3 or ES through WGL can still start the app (crmne#349, emilk/egui#8655). - eframe saves the zoom factor with the window size, so a window no longer shrinks each time it reopens at a zoom other than 100% (crmne#293, emilk/egui#8656). ZapFast's own window_builder hook for that is removed: with the fixed eframe it would scale the size twice.
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.
WindowGeometry::from_windowstores the inner size in points at the context's zoom factor. eframe restores it while building the next window, into a context whose zoom factor is usually still 1, since apps callContext::set_zoom_factorafter the window exists. A window saved at zoom 1.25 therefore comes back 20% smaller on every start.WindowGeometrynow also stores the zoom factor its size was measured at, and eframe converts the size to the zoom factor the window is built with (WindowSettings::convert_to_zoom_factor). Because the zoom factor sits next to the size, the normal geometry kept while a window is maximized converts too. Settings saved without a zoom factor keep their size, and nothing changes at zoom factor 1.Tests cover saving at 1.25 and 2.0 and restoring at 1, a RON round trip, and loading settings without a zoom factor.