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

Set WM_CLASS in X11 #885

Merged
merged 1 commit into from
Jul 28, 2023
Merged

Set WM_CLASS in X11 #885

merged 1 commit into from
Jul 28, 2023

Conversation

t-sin
Copy link
Contributor

@t-sin t-sin commented Jul 28, 2023

Before this PR Lem SDL2 has various WM_CLASS like sbcl, lem-sdl2, etc... It caused X11's WM_CLASS is not set explicitly. Because of it we cannot configure some software detect Lem process with WM_CLASS e.g. xkeysnail.

This PR sets WM_CLASS as Lem SDL2 so now users can be find Lem SDL2 process via windos class name.

I checked WM_CLASS is set after this commit like this:

;; clicked lem window after launching `lem-sdl2` or `lem -f sdl2` or something
$ xprop | grep WM_CLASS
WM_CLASS(STRING) = "Lem SDL2", "Lem SDL2"

@cxxxr
Copy link
Member

cxxxr commented Jul 28, 2023

Thank you so much!

@cxxxr cxxxr merged commit c2ac9c9 into lem-project:main Jul 28, 2023
1 check passed
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.

2 participants