diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/CMakeLists.txt | 2 | ||||
-rw-r--r-- | example/compositor.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 6c53e923..100e110a 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -75,6 +75,6 @@ target_link_libraries(compositor wlr-backend wlr-session wlr-render - wlr-wlcore + wlr-wayland ${XKBCOMMON_LIBRARIES} ) diff --git a/example/compositor.c b/example/compositor.c index 5106ec96..a52fe460 100644 --- a/example/compositor.c +++ b/example/compositor.c @@ -10,7 +10,7 @@ #include <wlr/render.h> #include <wlr/render/gles2.h> #include <wlr/types/wlr_output.h> -#include <wlr/wlcore/wl_shm.h> +#include <wlr/wayland/wlr_compositor.h> #include <xkbcommon/xkbcommon.h> #include "shared.h" @@ -37,7 +37,8 @@ int main() { compositor_init(&compositor); state.renderer = wlr_gles2_renderer_init(); - wlr_wl_shm_init(compositor.display); + wl_display_init_shm(compositor.display); + wlr_compositor_init(compositor.display); compositor_run(&compositor); } |