Skip to content
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

Add a method to set the WM_CLASS hint on an X11 window on Linux #1047

Closed
p-himik opened this issue Mar 1, 2025 · 3 comments
Closed

Add a method to set the WM_CLASS hint on an X11 window on Linux #1047

p-himik opened this issue Mar 1, 2025 · 3 comments

Comments

@p-himik
Copy link

p-himik commented Mar 1, 2025

Description

This is a feature request identical to LWJGL/lwjgl#51

In case it could affect the impl, my particular use-case is to be able to tell Awesome WM that the window should be floating based on its class.

GLFW has a somewhat similar request: glfw/glfw#2437

@TheMrMilchmann
Copy link
Collaborator

Unlike LWJGL 2, LWJGL 3 does not implement its windowing and only provides bindings to whatever the native libraries provide. I'm afraid you'll have to wait until this issue is resolved upstream in GLFW.

@TheMrMilchmann TheMrMilchmann closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2025
@Spasi
Copy link
Member

Spasi commented Mar 2, 2025

Hey @p-himik,

If migrating to SDL is an option for you (available in 3.4.0 snapshots), it looks like it already supports this via SDL_HINT_X11_WINDOW_TYPE.

If not and you're on a JDK version that supports the FFM API, you could try calling XChangeProperty manually with the appropriate values.

@p-himik
Copy link
Author

p-himik commented Mar 2, 2025

Thanks! It's mostly just a convenience feature, not something that's required at the moment, so I'm sticking to setting the window name to something I can check in my window manager and process accordingly. But I'm glad there are existing options to set the window type.

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

3 participants