diff --git a/include/wlr/types/wlr_shm.h b/include/wlr/types/wlr_shm.h index 396fc831..13a5ca5c 100644 --- a/include/wlr/types/wlr_shm.h +++ b/include/wlr/types/wlr_shm.h @@ -22,7 +22,16 @@ struct wlr_renderer; * Currently, accessing two buffers concurrently via * wlr_buffer_begin_data_ptr_access() will return an error. */ -struct wlr_shm; +struct wlr_shm { + struct wl_global *global; + + // private state + + uint32_t *formats; + size_t formats_len; + + struct wl_listener display_destroy; +}; /** * Create the wl_shm global. diff --git a/types/wlr_shm.c b/types/wlr_shm.c index 6160c4b0..47820c65 100644 --- a/types/wlr_shm.c +++ b/types/wlr_shm.c @@ -23,14 +23,6 @@ #define SHM_VERSION 1 -struct wlr_shm { - struct wl_global *global; - uint32_t *formats; - size_t formats_len; - - struct wl_listener display_destroy; -}; - struct wlr_shm_pool { struct wl_resource *resource; // may be NULL struct wlr_shm *shm;