mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-01-13 11:15:27 +00:00
Bugfix: letting XmbSetWMProperties set the windowtitle causes a memleak with some versions of Xlib
This commit is contained in:
parent
20a7f5eb72
commit
c131c1d129
@ -274,8 +274,9 @@ void init_window(int own_window, int w, int h, int set_trans, int back_colour,
|
|||||||
wmHint.initial_state = NormalState;
|
wmHint.initial_state = NormalState;
|
||||||
}
|
}
|
||||||
|
|
||||||
XmbSetWMProperties(display, window.window, window.title, NULL, argv,
|
XmbSetWMProperties(display, window.window, NULL, NULL, argv,
|
||||||
argc, NULL, &wmHint, &classHint);
|
argc, NULL, &wmHint, &classHint);
|
||||||
|
XStoreName(display, window.window, window.title);
|
||||||
|
|
||||||
/* Sets an empty WM_PROTOCOLS property */
|
/* Sets an empty WM_PROTOCOLS property */
|
||||||
XSetWMProtocols(display, window.window, NULL, 0);
|
XSetWMProtocols(display, window.window, NULL, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user