summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/common.h1
-rw-r--r--gui/gui.c1
-rw-r--r--gui/sheet.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/gui/common.h b/gui/common.h
index 177d1d8..f175a5a 100644
--- a/gui/common.h
+++ b/gui/common.h
@@ -79,6 +79,7 @@ struct gui_ctx {
struct overlay *sheet_overlays;
struct overlay *hist_overlays;
struct overlay *pop_overlays; /* pop-up dialogs */
+ struct overlay *pop_underlays;
int pop_x, pop_y;
struct aoi *aois; /* areas of interest; in canvas coord */
diff --git a/gui/gui.c b/gui/gui.c
index 8135a66..024b4c3 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -374,6 +374,7 @@ int gui(unsigned n_args, char **args, bool recurse, int limit)
.sheet_overlays = NULL,
.hist_overlays = NULL,
.pop_overlays = NULL,
+ .pop_underlays = NULL,
.aois = NULL,
.old_hist = NULL,
.hist_y_offset = 0,
diff --git a/gui/sheet.c b/gui/sheet.c
index a213b5d..d0984ca 100644
--- a/gui/sheet.c
+++ b/gui/sheet.c
@@ -265,6 +265,7 @@ void go_to_sheet(struct gui_ctx *ctx, struct gui_sheet *sheet)
{
aoi_dehover();
overlay_remove_all(&ctx->pop_overlays);
+ overlay_remove_all(&ctx->pop_underlays);
if (!sheet->rendered) {
render_sheet(sheet);
mark_aois(ctx, sheet);
@@ -331,6 +332,7 @@ static bool sheet_click(void *user, int x, int y)
return 1;
overlay_remove_all(&ctx->pop_overlays);
+ overlay_remove_all(&ctx->pop_underlays);
redraw(ctx);
return 1;
}