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

_NET_WM_NAME: update to fvwm3 #609

Merged
merged 1 commit into from Sep 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions fvwm/ewmh.c
Expand Up @@ -1858,7 +1858,7 @@ void EWMH_Init(struct monitor *m)
int supported_count = 0;
long val;
XTextProperty text;
unsigned char utf_name[4];
unsigned char utf_name[5];
char *names[1];
XClassHint classhints;

Expand All @@ -1881,9 +1881,9 @@ void EWMH_Init(struct monitor *m)
Scr.NoFocusWin, "_NET_SUPPORTING_WM_CHECK",
EWMH_ATOM_LIST_FVWM_ROOT, (unsigned char *)&val, 1);

names[0] = "fvwm";
classhints.res_name= "fvwm";
classhints.res_class= "FVWM";
names[0] = "fvwm3";
classhints.res_name= "fvwm3";
classhints.res_class= "FVWM3";

XSetClassHint(dpy, Scr.NoFocusWin, &classhints);
if (XStringListToTextProperty(names, 1, &text))
Expand All @@ -1897,6 +1897,7 @@ void EWMH_Init(struct monitor *m)
utf_name[1] = 0x56;
utf_name[2] = 0x57;
utf_name[3] = 0x4D;
utf_name[4] = 0x3;

ewmh_ChangeProperty(
Scr.NoFocusWin, "_NET_WM_NAME", EWMH_ATOM_LIST_PROPERTY_NOTIFY,
Expand Down