Skip to content

Conversation

Enaium
Copy link

@Enaium Enaium commented Jan 30, 2025

It's working fine in Compose at 1.8.0-alpha02

Release Notes

N/A.

@Enaium Enaium marked this pull request as draft January 30, 2025 14:05
@Enaium Enaium marked this pull request as ready for review January 30, 2025 14:11
@MatkovIvan MatkovIvan requested a review from igordmn January 30, 2025 14:54
Copy link
Member

@MatkovIvan MatkovIvan left a comment

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

@douzooo
Copy link

douzooo commented Feb 6, 2025

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
Copy link

philip-segerfast commented Jun 22, 2025

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

douzooo commented Jun 22, 2025

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
Copy link

philip-segerfast commented Jun 23, 2025

Omg, I though I already tested that. It works!
Thanks @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