mirror of
https://github.com/wizbright/waybox.git
synced 2026-03-05 01:40:52 -05:00
Fixed output manager
This commit is contained in:
parent
357cd843dd
commit
2af28015c8
4 changed files with 4 additions and 5 deletions
|
|
@ -14,8 +14,6 @@ struct wb_output {
|
||||||
struct wlr_output *wlr_output;
|
struct wlr_output *wlr_output;
|
||||||
struct wb_server *server;
|
struct wb_server *server;
|
||||||
|
|
||||||
struct wlr_xdg_output_manager_v1 *manager;
|
|
||||||
|
|
||||||
struct wl_list layers[4];
|
struct wl_list layers[4];
|
||||||
|
|
||||||
struct wl_listener destroy;
|
struct wl_listener destroy;
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ struct wb_server {
|
||||||
struct wlr_backend *backend;
|
struct wlr_backend *backend;
|
||||||
struct wlr_compositor *compositor;
|
struct wlr_compositor *compositor;
|
||||||
struct wlr_output_layout *output_layout;
|
struct wlr_output_layout *output_layout;
|
||||||
|
struct wlr_xdg_output_manager_v1 *output_manager;
|
||||||
struct wlr_renderer *renderer;
|
struct wlr_renderer *renderer;
|
||||||
struct wlr_subcompositor *subcompositor;
|
struct wlr_subcompositor *subcompositor;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -200,7 +200,4 @@ void new_output_notify(struct wl_listener *listener, void *data) {
|
||||||
|
|
||||||
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
wlr_output_layout_add_auto(server->output_layout, wlr_output);
|
||||||
wlr_output_create_global(wlr_output);
|
wlr_output_create_global(wlr_output);
|
||||||
|
|
||||||
output->manager = wlr_xdg_output_manager_v1_create(server->wl_display,
|
|
||||||
server->output_layout);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,9 @@ bool wb_create_backend(struct wb_server* server) {
|
||||||
server->seat = wb_seat_create(server);
|
server->seat = wb_seat_create(server);
|
||||||
server->cursor = wb_cursor_create(server);
|
server->cursor = wb_cursor_create(server);
|
||||||
|
|
||||||
|
server->output_manager = wlr_xdg_output_manager_v1_create(server->wl_display,
|
||||||
|
server->output_layout);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue