From 38069992ec97aa22da84a1e1dbb5e8ff9cd03d60 Mon Sep 17 00:00:00 2001 From: Ilia Bozhinov Date: Mon, 25 Mar 2019 22:21:17 +0100 Subject: Add option to respect panel position (#48) * implement option to make menu respect panel boundaries * fixup! implement option to make menu respect panel boundaries --- lib/internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/internal.h') diff --git a/lib/internal.h b/lib/internal.h index 25169ac..adb06f6 100644 --- a/lib/internal.h +++ b/lib/internal.h @@ -90,6 +90,11 @@ struct render_api { */ void (*grab_keyboard)(const struct bm_menu *menu, bool grab); + /** + * Control overlap with panels + */ + void (*set_overlap)(const struct bm_menu *menu, bool overlap); + /** * Version of the plugin. * Should match BM_PLUGIN_VERSION or failure. @@ -296,6 +301,11 @@ struct bm_menu { * Is menu grabbed? */ bool grabbed; + + /** + * Should the menu overlap panels + */ + bool overlap; }; /* library.c */ -- cgit v1.2.3-70-g09d2