diff options
-rw-r--r-- | include/wlr/types/wlr_surface.h | 4 | ||||
-rw-r--r-- | types/wlr_surface.c | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index eb88a663..04c64a72 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -54,8 +54,8 @@ struct wlr_surface { } signals; struct wl_list frame_callback_list; // wl_surface.frame - - struct wl_listener compositor_listener; // destroy listener used by compositor + // destroy listener used by compositor + struct wl_listener compositor_listener; void *compositor_data; // subsurface properties diff --git a/types/wlr_surface.c b/types/wlr_surface.c index de28f4df..d5e0e6a2 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -7,7 +7,8 @@ #include <wlr/types/wlr_surface.h> #include <wlr/render/matrix.h> -static void surface_destroy(struct wl_client *client, struct wl_resource *resource) { +static void surface_destroy(struct wl_client *client, + struct wl_resource *resource) { wl_resource_destroy(resource); } @@ -282,7 +283,8 @@ void wlr_surface_flush_damage(struct wlr_surface *surface) { } struct wl_shm_buffer *buffer = wl_shm_buffer_get(surface->current.buffer); if (!buffer) { - if (wlr_renderer_buffer_is_drm(surface->renderer, surface->pending.buffer)) { + if (wlr_renderer_buffer_is_drm(surface->renderer, + surface->pending.buffer)) { wlr_texture_upload_drm(surface->texture, surface->pending.buffer); goto release; } else { |