diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-22 22:24:13 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-05-22 22:24:13 +0300 |
commit | fd94d906676b0dcef2b783c992f75254a61ae025 (patch) | |
tree | a117549152c70d3105b7f94d910ba1333368b2af /src/ui/widget.c | |
parent | 4108d5b0154775e2bf2c3af5003cf840675d789a (diff) |
Document footer buttons
In some situations, e.g., when a client certificate is required but not active, make available action buttons that offer related shortcuts.
Selecting or deselecting an identity for use will automatically reload the current page for convenience.
Animate closing sidebars with Escape key.
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c index 8d9c6f3b..543b8bc9 100644 --- a/src/ui/widget.c +++ b/src/ui/widget.c | |||
@@ -845,6 +845,12 @@ iBool containsExpanded_Widget(const iWidget *d, iInt2 windowCoord, int expand) { | |||
845 | addY_I2(d->rect.size, | 845 | addY_I2(d->rect.size, |
846 | d->flags & drawBackgroundToBottom_WidgetFlag ? size_Root(d->root).y : 0) | 846 | d->flags & drawBackgroundToBottom_WidgetFlag ? size_Root(d->root).y : 0) |
847 | }; | 847 | }; |
848 | /* Apply the animated offset. (Visual offsets don't affect interaction.) */ | ||
849 | for (const iWidget *w = d; w; w = w->parent) { | ||
850 | if (w->animOffsetRef) { | ||
851 | windowCoord.y += value_Anim(w->animOffsetRef); | ||
852 | } | ||
853 | } | ||
848 | return contains_Rect(expand ? expanded_Rect(bounds, init1_I2(expand)) : bounds, | 854 | return contains_Rect(expand ? expanded_Rect(bounds, init1_I2(expand)) : bounds, |
849 | windowToInner_Widget(d, windowCoord)); | 855 | windowToInner_Widget(d, windowCoord)); |
850 | } | 856 | } |