aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-06-08 12:00:50 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-06-08 12:00:50 +0200
commitd4c2aa6c54dd1784e63992c1a53bd7f68d4db6a7 (patch)
treed5cb516102e0c117c2d4d03c4320bf3dbee52cf7 /atom_inspector_nk.c
parenteddf7369fc1fdcc5732371d0e8a0754b9857cd9a (diff)
downloadsherlock.lv2-d4c2aa6c54dd1784e63992c1a53bd7f68d4db6a7.tar.xz
fix strobing shadowing when in non-following mode.
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index f614fe4..2a70fe2 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -195,7 +195,13 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
nk_layout_row_dynamic(ctx, content_h, 1);
nk_flags flags = NK_WINDOW_BORDER;
if(handle->state.follow)
+ {
flags |= NK_WINDOW_NO_SCROLLBAR;
+ }
+ else
+ {
+ handle->shadow = false;
+ }
struct nk_list_view lview;
if(nk_list_view_begin(ctx, &lview, "Events", flags, widget_h, NK_MIN(handle->n_item, MAX_LINES)))
{