Skip to content

Client side window decorations not rendered. #1054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sandmuel opened this issue Mar 27, 2025 · 2 comments
Open

Client side window decorations not rendered. #1054

sandmuel opened this issue Mar 27, 2025 · 2 comments

Comments

@sandmuel
Copy link

Version

3.3.6

Platform

Linux x64

JDK

Amazon Corretto 21.06

Module

LWJGL glfw

Bug description

For context this is the example from https://www.lwjgl.org/guide. The example is packaged as a jar.

ON GNOME DESKTOP...

When running the jar via Intellij's (or Eclipse's) jar run target the window appears as expected:

Image

But if the same jar is run as an individual process, window decorations are not rendered:

Image

Note this only occurs on GNOME with Wayland, not GNOME on Xorg (For additional context, GNOME on Wayland is known to be one of the few desktops which does not support server side window decorations, meaning processes must handle window decorations themselves).

ON KDE PLASMA (WAYLAND)...

The jar can be run as an individual process and the window decorations appear just fine:

Image

So based on this, it can be assumed that the issue lies in rendering client side decorations given that the only environment in which the window decorations fail to render is the one without support of server side window decorations. Furthermore, this would also explain why the window decorations do display properly when run as a child process to an IDE, given that (IIRC) only the parent process must manage client side decorations.

Stacktrace or crash log output

@sandmuel
Copy link
Author

Oh also, this is not an issue with GLFW itself; when I was using GLFW with Rust bindings previously, I did not have this issue.

@Spasi
Copy link
Member

Spasi commented Apr 26, 2025

Hey @sandmuel,

I'm afraid this issue is beyond the scope of LWJGL. I'm pretty sure that GLFW uses libdecor as a fallback for client-side decorations and if that doesn't work for some reason, you could try opening an issue with GLFW. There are no plans to have LWJGL directly render anything or interact with windowing systems in any way.

You could also try migrating to the SDL bindings in 3.4.0 snapshots. It might have more robust support for Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants