mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Add xdg shell stubs
This commit is contained in:
parent
347707c962
commit
c3f15ea284
6 changed files with 164 additions and 1 deletions
|
|
@ -20,6 +20,7 @@ struct sample_state {
|
|||
struct wlr_renderer *renderer;
|
||||
struct wl_compositor_state compositor;
|
||||
struct wl_shell_state shell;
|
||||
struct xdg_shell_state xdg_shell;
|
||||
};
|
||||
|
||||
void handle_output_frame(struct output_state *output, struct timespec *ts) {
|
||||
|
|
@ -57,6 +58,7 @@ int main() {
|
|||
wl_display_init_shm(compositor.display);
|
||||
wl_compositor_init(compositor.display, &state.compositor, state.renderer);
|
||||
wl_shell_init(compositor.display, &state.shell);
|
||||
xdg_shell_init(compositor.display, &state.xdg_shell);
|
||||
|
||||
compositor_run(&compositor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue