X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Ftooltip%2Ftooltip.h;h=0559e4d4c52497e8b5e42e43ae64386ff2200c03;hb=9becd8bd3b513a0bbfe778b2ef88f6d598fdf03a;hp=82752d6b2ec0e0b2eff9336b7caed1c5d0b539c4;hpb=fe019d7c8ab1bc45aa0690028e108f44bb99a467;p=chaz%2Ftint2 diff --git a/src/tooltip/tooltip.h b/src/tooltip/tooltip.h index 82752d6..0559e4d 100644 --- a/src/tooltip/tooltip.h +++ b/src/tooltip/tooltip.h @@ -18,10 +18,9 @@ #ifndef TOOLTIP_H #define TOOLTIP_H -#include - #include "task.h" #include "panel.h" +#include "timer.h" typedef struct { @@ -29,8 +28,8 @@ typedef struct { char* tooltip_text; Panel* panel; Window window; - struct timespec show_timeout; - struct timespec hide_timeout; + int show_timeout_msec; + int hide_timeout_msec; Bool enabled; Bool mapped; int paddingx; @@ -39,8 +38,7 @@ typedef struct { config_color font_color; Color background_color; Border border; - int show_timer_id; - int hide_timer_id; + const struct timeout* timeout; } Tooltip; extern Tooltip g_tooltip;