summaryrefslogtreecommitdiff
path: root/lib/renderers/wayland/wayland.h
diff options
context:
space:
mode:
authorIlia Bozhinov <ammen99@gmail.com>2019-03-24 20:18:59 +0100
committerIlia Bozhinov <ammen99@gmail.com>2019-03-24 20:18:59 +0100
commitab82afab7f8da81fbd6445a0b65fb70ecba898b8 (patch)
treec82dd19bad0e36bcf841c09c60125c02f65ccb8a /lib/renderers/wayland/wayland.h
parent33e540a2b04ce78f5c7ab4a60b899c67f586cc32 (diff)
downloadbemenu-ab82afab7f8da81fbd6445a0b65fb70ecba898b8.tar.gz
bemenu-ab82afab7f8da81fbd6445a0b65fb70ecba898b8.tar.bz2
bemenu-ab82afab7f8da81fbd6445a0b65fb70ecba898b8.zip
wayland: implement a proper repaint cycle
Diffstat (limited to 'lib/renderers/wayland/wayland.h')
-rw-r--r--lib/renderers/wayland/wayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/renderers/wayland/wayland.h b/lib/renderers/wayland/wayland.h
index cc50feb..9defb06 100644
--- a/lib/renderers/wayland/wayland.h
+++ b/lib/renderers/wayland/wayland.h
@@ -84,6 +84,7 @@ struct window {
uint32_t displayed;
struct wl_list link;
bool bottom;
+ bool render_pending;
struct {
void (*render)(struct cairo *cairo, uint32_t width, uint32_t height, uint32_t max_height, const struct bm_menu *menu, struct cairo_paint_result *result);
@@ -117,6 +118,7 @@ struct wayland {
void bm_wl_repeat(struct wayland *wayland);
bool bm_wl_registry_register(struct wayland *wayland);
void bm_wl_registry_destroy(struct wayland *wayland);
+void bm_wl_window_schedule_render(struct window *window);
void bm_wl_window_render(struct window *window, struct wl_display *display, const struct bm_menu *menu);
void bm_wl_window_set_bottom(struct window *window, struct wl_display *display, bool bottom);
void bm_wl_window_grab_keyboard(struct window *window, struct wl_display *display, bool grab);