From 88e713b981c8760c255b19009918ee94f60fbdc1 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 26 Jul 2022 17:51:31 +0100 Subject: Add automatic detection of number of results. Tofi will now try to autodetect how many results can be drawn if --num-results=0 is specified, which is now the default. --- src/entry.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/entry.h') diff --git a/src/entry.h b/src/entry.h index 63aad8a..c45bb85 100644 --- a/src/entry.h +++ b/src/entry.h @@ -40,10 +40,16 @@ struct entry { struct history history; bool use_pango; + uint32_t clip_x; + uint32_t clip_y; + uint32_t clip_width; + uint32_t clip_height; + /* Options */ bool drun; bool horizontal; uint32_t num_results; + uint32_t num_results_drawn; int32_t result_spacing; uint32_t font_size; char font_name[MAX_FONT_NAME_LENGTH]; -- cgit v1.2.3