]> Dogcows Code - chaz/tint2/blobdiff - src/tint.c
*fix* unmap traywin (part of issue 205)
[chaz/tint2] / src / tint.c
index 2c991215f5924a2e799fb37fa612f7d08c6de341..c95c3171a2e823063a2db8c674029dc7aa722283 100644 (file)
@@ -31,6 +31,7 @@
 #include <Imlib2.h>
 #include <signal.h>
 
+#include "version.h"
 #include "server.h"
 #include "window.h"
 #include "config.h"
@@ -59,7 +60,7 @@ void init (int argc, char *argv[])
                        exit(0);
                }
                if (!strcmp(argv[i], "-v") || !strcmp(argv[i], "--version"))    {
-                       printf("tint2 version 0.8\n");
+                       printf("tint2 version %s\n", VERSION_STRING);
                        exit(0);
                }
                if (!strcmp(argv[i], "-c")) {
@@ -263,7 +264,6 @@ int tint2_handles_click(Panel* panel, XButtonEvent* e)
        if (tskbar && e->button == 1 && panel_mode == MULTI_DESKTOP)
                return 1;
        if (click_clock(panel, e->x, e->y)) {
-               printf("ici 1 : %d\n", e->button);
                if ( (e->button == 1 && clock_lclick_command) || (e->button == 3 && clock_rclick_command) )
                        return 1;
                else
@@ -495,6 +495,10 @@ void event_property_notify (XEvent *e)
                // Window title changed
                if (at == server.atom._NET_WM_VISIBLE_NAME || at == server.atom._NET_WM_NAME || at == server.atom.WM_NAME) {
                        get_title(tsk);
+                       if (g_tooltip.mapped && (g_tooltip.area == (Area*)tsk)) {
+                               tooltip_copy_text((Area*)tsk);
+                               tooltip_update();
+                       }
                        panel_refresh = 1;
                }
                // Demand attention
This page took 0.020697 seconds and 4 git commands to generate.