diff options
author | Ilia Bozhinov <ammen99@gmail.com> | 2019-03-25 22:21:17 +0100 |
---|---|---|
committer | Jari Vetoniemi <mailRoxas@gmail.com> | 2019-03-25 23:21:17 +0200 |
commit | 38069992ec97aa22da84a1e1dbb5e8ff9cd03d60 (patch) | |
tree | 4c476d8c56c8b1fe84c7858b6c8b61a46cadae21 /lib/renderers/wayland/wayland.c | |
parent | b375ef8b0bd2c40b4fc26bd0c4d38dcb4374c149 (diff) | |
download | bemenu-38069992ec97aa22da84a1e1dbb5e8ff9cd03d60.tar.gz bemenu-38069992ec97aa22da84a1e1dbb5e8ff9cd03d60.tar.bz2 bemenu-38069992ec97aa22da84a1e1dbb5e8ff9cd03d60.zip |
Add option to respect panel position (#48)
* implement option to make menu respect panel boundaries
* fixup! implement option to make menu respect panel boundaries
Diffstat (limited to 'lib/renderers/wayland/wayland.c')
-rw-r--r-- | lib/renderers/wayland/wayland.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/renderers/wayland/wayland.c b/lib/renderers/wayland/wayland.c index a719c7d..442b0f6 100644 --- a/lib/renderers/wayland/wayland.c +++ b/lib/renderers/wayland/wayland.c @@ -209,6 +209,18 @@ grab_keyboard(const struct bm_menu *menu, bool grab) } static void +set_overlap(const struct bm_menu *menu, bool overlap) +{ + struct wayland *wayland = menu->renderer->internal; + assert(wayland); + + struct window *window; + wl_list_for_each(window, &wayland->windows, link) { + bm_wl_window_set_overlap(window, wayland->display, overlap); + } +} + +static void destructor(struct bm_menu *menu) { struct wayland *wayland = menu->renderer->internal; @@ -303,6 +315,7 @@ register_renderer(struct render_api *api) api->render = render; api->set_bottom = set_bottom; api->grab_keyboard = grab_keyboard; + api->set_overlap = set_overlap; api->priorty = BM_PRIO_GUI; api->version = BM_PLUGIN_VERSION; return "wayland"; |