mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
Add surface interface stubs in compositor example
Add the wayland surface interface to the example compositor. Implement the create_surface method to create a new wlr surface from the wayland surface and add the interface.
This commit is contained in:
parent
2bfacc63d3
commit
555914a13b
3 changed files with 92 additions and 6 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <wlr/render/gles2.h>
|
||||
#include <wlr/types/wlr_output.h>
|
||||
#include <xkbcommon/xkbcommon.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "shared.h"
|
||||
#include "compositor.h"
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ int main() {
|
|||
|
||||
state.renderer = wlr_gles2_renderer_init();
|
||||
wl_display_init_shm(compositor.display);
|
||||
wl_compositor_init(compositor.display, &state.compositor);
|
||||
wl_compositor_init(compositor.display, &state.compositor, state.renderer);
|
||||
wl_shell_init(compositor.display, &state.shell);
|
||||
|
||||
compositor_run(&compositor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue