Skip to content

Update lwjgl-integration#5221

Open
Enaium (Enaium) wants to merge 1 commit into
JetBrains:masterfrom
Enaium:master
Open

Update lwjgl-integration#5221
Enaium (Enaium) wants to merge 1 commit into
JetBrains:masterfrom
Enaium:master

Conversation

@Enaium

Copy link
Copy Markdown

It's working fine in Compose at 1.8.0-alpha02

Release Notes

N/A.

@MatkovIvan Ivan Matkov (MatkovIvan) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usage of the reworked API of ComposeScene LGTM

Comment thread experimental/lwjgl-integration/src/main/kotlin/main.kt Outdated
@douzooo

Copy link
Copy Markdown

Issue with this: Frame only updating when resizing window

System:

  • MacOs 15
  • M3 Pro

Description:
After clicking the button I only see the next frames when resizing the window

@philip-segerfast

Philip Segerfast (philip-segerfast) commented Jun 22, 2025

Copy link
Copy Markdown

On macos the composables only recompose when resizing the window, like douzooo said.
Also, the snapshot system doesn't work at all because it uses the AWT dispatcher which conflicts with GLFW's event queue (GLFW.glfwWaitEvents() never returns - is blocked by AWT).

Edit: System.setProperty("java.awt.headless", "true") fixes everything.

I'm trying to make mod for a game that would allow you to use Compose to render UIs but this sadly doesn't work because the game uses GLFW.

If there are any workarounds I'd be very happy to hear about it.

System:

  • MacOs 15
  • M4 Pro

@douzooo

Copy link
Copy Markdown

Hey philip,
I got it working by using the following line before anything gets initialized:

System.setProperty("java.awt.headless", "true");

I tested this on: Minecraft 1.8.9 with Lwjgl3 and GLFW ofc.

@philip-segerfast

Philip Segerfast (philip-segerfast) commented Jun 23, 2025

Copy link
Copy Markdown

Omg, I though I already tested that. It works!
Thanks David Beneder (@douzooo)

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.

4 participants