]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
*fix* valgrind invalid read/write and memleaks
[chaz/tint2] / src / tint.c
index 2f5edc6f0991cf429611982a31808646399dbca9..529e3cda0119a3d18bdaa829084bd10aeebcfeed 100644 (file)
@@ -156,7 +156,6 @@ void init_X11()
 
 void cleanup()
 {
-       cleanup_timeout();
        cleanup_systray();
        cleanup_tooltip();
        cleanup_clock();
@@ -174,6 +173,7 @@ void cleanup()
        imlib_context_disconnect_display();
 
        cleanup_server();
+       cleanup_timeout();
        if (server.dsp) XCloseDisplay(server.dsp);
 }
 
@@ -485,6 +485,11 @@ void event_property_notify (XEvent *e)
                        server.got_root_win = 1;
                }
 
+               // Change name of desktops
+               else if (at == server.atom._NET_DESKTOP_NAMES) {
+                       printf("_NET_DESKTOP_NAMES\n");
+                       panel_refresh = 1;
+               }
                // Change number of desktops
                else if (at == server.atom._NET_NUMBER_OF_DESKTOPS) {
                        if (!taskbar_enabled) return;
This page took 0.024893 seconds and 4 git commands to generate.