Skip to content

JBR-10542 Implement apple.awt.windowSurfaceDisabled client property - #635

Open
Alexander Maryanovsky (m-sasha) wants to merge 1 commit into
JetBrains:jbr25from
m-sasha:m-sasha/apple.awt.windowSurfaceDisabled
Open

JBR-10542 Implement apple.awt.windowSurfaceDisabled client property#635
Alexander Maryanovsky (m-sasha) wants to merge 1 commit into
JetBrains:jbr25from
m-sasha:m-sasha/apple.awt.windowSurfaceDisabled

Conversation

@m-sasha

@m-sasha Alexander Maryanovsky (m-sasha) commented Aug 21, 2026

Copy link
Copy Markdown

Added a apple.awt.windowSurfaceDisabled root pane client property that prevents the allocation of 2-3 window-sized drawables by Java2D on macOS/Metal.

The purpose is to reduce the memory footprint of apps/frameworks, such as Compose for Desktop, which don't draw anything in AWT.

The functionality itself was implemented by me with guidance from Claude Opus 5.
The test was written by Claude and verified (both reading and running) by me. There is pretty much only one way to write it, though (show the window, check the surface), so a human would have produced the same code, I think.


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