1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 04:06:03 +00:00

Bugfix: letting XmbSetWMProperties set the windowtitle causes a memleak with some versions of Xlib

This commit is contained in:
Nikolas Garofil 2009-11-21 23:58:02 +01:00
parent 20a7f5eb72
commit c131c1d129

View File

@ -274,8 +274,9 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
wmHint.initial_state = NormalState;
}
XmbSetWMProperties(display, window.window, window.title, NULL, argv,
XmbSetWMProperties(display, window.window, NULL, NULL, argv,
argc, NULL, &wmHint, &classHint);
XStoreName(display, window.window, window.title);
/* Sets an empty WM_PROTOCOLS property */
XSetWMProtocols(display, window.window, NULL, 0);