Separate menu state from Wayland state

This commit is contained in:
adnano 2024-05-02 17:03:07 -04:00
commit 6284eea24b
7 changed files with 577 additions and 508 deletions

17
wayland.h Normal file
View file

@ -0,0 +1,17 @@
#ifndef WMENU_WAYLAND_H
#define WMENU_WAYLAND_H
#include "menu.h"
#include <wayland-client-protocol.h>
struct wl_context;
int menu_run(struct menu *menu);
int context_get_scale(struct wl_context *context);
struct wl_shm *context_get_shm(struct wl_context *context);
struct wl_surface *context_get_surface(struct wl_context *context);
struct xkb_state *context_get_xkb_state(struct wl_context *context);
bool context_paste(struct wl_context *context);
#endif