fix(linux): initialize Compose display scaling - #411
Merged
Conversation
obiente-cloud
Bot
temporarily deployed
to
Obiente Preview / PR #411 / NC Native
August 20, 2026 16:03
Destroyed
Obiente previewNC Native · Obiente updates this comment as the preview changes. |
veryCrunchy
marked this pull request as ready for review
August 20, 2026 16:04
obiente-cloud
Bot
temporarily deployed
to
Obiente Preview / PR #411 / NC Native
August 20, 2026 16:04
Destroyed
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.
Summary
Cause
Compose Desktop requires its global Swing configuration to run before Swing or AWT initialization when an application performs bootstrap work ahead of
application. The desktop entry point installed diagnostics, handled update and single-instance states, and could open Swing dialogs before that ordering was explicit. On Linux Wayland/HiDPI sessions this can leave the process with incorrectly initialized display scaling.Validation so far
On the dedicated build host:
DesktopWindowActivationTest, including configure-before-launch ordering:ui:createDistributableBoth passed. This PR is temporarily a draft only while its own PR number is added to the user-facing changelog and the complete repository gate is run.
Scope
This does not force
sun.java2d.uiScale,GDK_SCALE, or another fixed value. It enables Compose/Skiko's normal Linux auto-DPI initialization early enough to observe the actual desktop environment, including mixed-DPI setups.