Skip to content

Comments

Set WM_CLASS in X11#885

Merged
cxxxr merged 1 commit intolem-project:mainfrom
t-sin:sdl2-wm-class-in-x11
Jul 28, 2023
Merged

Set WM_CLASS in X11#885
cxxxr merged 1 commit intolem-project:mainfrom
t-sin:sdl2-wm-class-in-x11

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