Skip to content

Commit

Permalink
_NET_WM_NAME: update to fvwm3
Browse files Browse the repository at this point in the history
When setting various EWMH-specific hints, ensure we register ourselves
as fvwm3.
  • Loading branch information
ThomasAdam committed Sep 1, 2021
1 parent f033dd9 commit 3663d42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fvwm/ewmh.c
Original file line number Diff line number Diff line change
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

0 comments on commit 3663d42

Please sign in to comment.