Skip to content

Funny characters in x11 window title (PR#1451)

1 message · Peter Dalgaard

#
"Warnes, Gregory R" <gregory_r_warnes@groton.pfizer.com> writes:
My bet is that it is X-server dependent what happens with bytes past
the end of a string set with

    XChangeProperty(display, xd->window, XA_WM_NAME, XA_STRING,
                    8, PropModeReplace, (unsigned char*)t, 50);

(in newX11_Activate and newX11_Deactivate, src/modules/X11/devX11.c).

Could you try and replace the 50 with strlen(t) or maybe strlen(t)+1 ?