diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-23 15:10:52 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-26 10:26:55 -0400 |
commit | f5b7bc033eced5c1ba3ba63b52985fb9b0e9f618 (patch) | |
tree | df732b8b07009590cc6d2cfa2f23cceb794f3f3a /example/compositor.c | |
parent | 8a18cf456aac6fee666ccb4e7df0a9eb6c059756 (diff) |
Add wlr_wl_compositor and remove wlr_wl_shm
Diffstat (limited to 'example/compositor.c')
-rw-r--r-- | example/compositor.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |