Bugfix: letting XmbSetWMProperties set the windowtitle causes a memleak with some...
authorNikolas Garofil <garo@dunaldi.garofil.be>
Sat, 21 Nov 2009 22:58:02 +0000 (23:58 +0100)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Sat, 21 Nov 2009 22:58:02 +0000 (23:58 +0100)
src/x11.c

index f9cf35a..80c02b3 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -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);