diff options
Diffstat (limited to 'src/comet.c')
| -rw-r--r-- | src/comet.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/comet.c b/src/comet.c index 7e3f12c..e87836e 100644 --- a/src/comet.c +++ b/src/comet.c @@ -8,6 +8,7 @@ #include "event.h" #define ANY_LOG_IMPLEMENT +#define ANY_LOG_VALUE_STRING(key, value) "%s=\"%s\"", key, value ? value : "(null)" #include "any_log.h" cairo_surface_t *render(layout_t *layout, layout_info_t info) @@ -86,7 +87,7 @@ int main(int argc, char **argv) block_t top = { .hidden = false, .color = { 0.3, 0.2, 0.5, 1 }, - .min_width = 1000, + .min_width = width, .type = BLOCK_GROUP, .group = { .spacing = 10, @@ -96,14 +97,12 @@ int main(int argc, char **argv) }; // TODO: Allow ondemand rendering + struct timespec rate, start, end, diff; double freq = 1.0 / 60.0 + 0.5e-9; - struct timespec rate; rate.tv_sec = (long)freq; rate.tv_nsec = (freq - rate.tv_sec) * 1000000000ul; - struct timespec start, end, diff; - while (true) { timespec_get(&start, TIME_UTC); |
