Skip to content

fix(linux): initialize Compose display scaling - #411

Merged
veryCrunchy merged 3 commits into
mainfrom
fix/linux-wayland-scaling
Aug 20, 2026
Merged

fix(linux): initialize Compose display scaling#411
veryCrunchy merged 3 commits into
mainfrom
fix/linux-wayland-scaling

Conversation

@veryCrunchy

Copy link
Copy Markdown
Member

Summary

  • initialize Compose Desktop's Swing globals before any desktop bootstrap path can enter Swing or AWT
  • preserve automatic Linux DPI detection instead of hard-coding a scale factor
  • make the process-start ordering deterministic and directly testable

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:createDistributable

Both 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.

@obiente-cloud
obiente-cloud Bot temporarily deployed to Obiente Preview / PR #411 / NC Native August 20, 2026 16:03 Destroyed
@obiente-cloud

obiente-cloud Bot commented Aug 20, 2026

Copy link
Copy Markdown

Obiente preview

NC Native · 50a2fe735719 · Ready

Open preview

View in Obiente

Obiente updates this comment as the preview changes.

@veryCrunchy
veryCrunchy marked this pull request as ready for review August 20, 2026 16:04
@obiente-cloud
obiente-cloud Bot temporarily deployed to Obiente Preview / PR #411 / NC Native August 20, 2026 16:04 Destroyed
@veryCrunchy
veryCrunchy merged commit 696adf6 into main Aug 20, 2026
5 checks passed
@veryCrunchy
veryCrunchy deleted the fix/linux-wayland-scaling branch August 20, 2026 16:24
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