Fixed typo.

This commit is contained in:
Armin Novak 2015-01-15 15:26:43 +01:00
parent 9767f7f042
commit e10b42e305
1 changed files with 2 additions and 2 deletions

View File

@ -510,12 +510,12 @@ void xf_SetWindowText(xfContext* xfc, xfAppWindow* appWindow, char* name)
{
XStoreName(xfc->display, appWindow->handle, name);
const size_t i = strlen(name);
XStoreName(xfc->display, window->handle, name);
XStoreName(xfc->display, appWindow->handle, name);
Atom wm_Name = XInternAtom(xfc->display, "_NET_WM_NAME", FALSE);
Atom utf8Str = XInternAtom(xfc->display, "UTF8_STRING", FALSE);
XChangeProperty(xfc->display, window->handle, wm_Name, utf8Str, 8,
XChangeProperty(xfc->display, appWindow->handle, wm_Name, utf8Str, 8,
PropModeReplace, (unsigned char *)name, i);
}