diff options
author | Phil Jones <philj56@gmail.com> | 2022-07-26 17:51:31 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-07-26 17:51:31 +0100 |
commit | 88e713b981c8760c255b19009918ee94f60fbdc1 (patch) | |
tree | ecdca68c12425bbec7fb2f353d28a03c4e2f5a5c /src/entry.h | |
parent | d3bf3b017b8129ff772ad9c5658ccdfc826d0e51 (diff) |
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.
Diffstat (limited to 'src/entry.h')
-rw-r--r-- | src/entry.h | 6 |
1 files changed, 6 insertions, 0 deletions
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]; |