Migrated layer shell to the scene graph API

This commit is contained in:
Keith Bowes 2022-02-28 09:07:17 -05:00
parent d7b799ab80
commit 5a3ac6055d
7 changed files with 415 additions and 304 deletions

View file

@ -15,9 +15,17 @@ struct wb_output {
struct wlr_output *wlr_output;
struct wb_server *server;
struct wl_list layers[4]; /* wb_layer_surface::link */
struct {
struct wlr_scene_node *shell_background;
struct wlr_scene_node *shell_bottom;
struct wlr_scene_node *shell_fullscreen;
struct wlr_scene_node *shell_overlay;
struct wlr_scene_node *shell_top;
} layers;
#if !WLR_CHECK_VERSION(0, 16, 0)
struct wlr_scene_rect *scene_rect;
#endif
struct wl_listener destroy;
struct wl_listener frame;

View file

@ -11,6 +11,8 @@ struct wb_server;
struct wb_seat {
struct wlr_seat *seat;
struct wlr_layer_surface_v1 *focused_layer;
struct wl_list keyboards;
struct wl_listener request_set_primary_selection;
@ -28,5 +30,6 @@ struct wb_keyboard {
struct wb_server;
struct wb_seat *wb_seat_create(struct wb_server *server);
void seat_set_focus_layer(struct wb_seat *seat, struct wlr_layer_surface_v1 *layer);
void wb_seat_destroy(struct wb_seat *seat);
#endif