From: Johan Malm Date: Fri, 26 Nov 2021 19:27:50 +0000 (+0000) Subject: Fix minor style violations X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=d50c2f2eac6c647d1d942611ac03773290c9dfd5;p=proto%2Flabwc.git Fix minor style violations --- diff --git a/include/labwc.h b/include/labwc.h index cef1b99e..27a67abf 100644 --- a/include/labwc.h +++ b/include/labwc.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #ifndef __LABWC_H #define __LABWC_H #include "config.h" @@ -395,8 +396,7 @@ void foreign_toplevel_handle_create(struct view *view); void desktop_raise_view(struct view *view); void desktop_focus_and_activate_view(struct seat *seat, struct view *view); -enum lab_cycle_dir -{ +enum lab_cycle_dir { LAB_CYCLE_DIR_NONE, LAB_CYCLE_DIR_FORWARD, LAB_CYCLE_DIR_BACKWARD, diff --git a/src/config/rcxml.c b/src/config/rcxml.c index 3392db0c..982bcb46 100644 --- a/src/config/rcxml.c +++ b/src/config/rcxml.c @@ -408,7 +408,6 @@ rcxml_init() return; } has_run = true; - LIBXML_TEST_VERSION wl_list_init(&rc.keybinds); wl_list_init(&rc.mousebinds); wl_list_init(&rc.libinput_categories); diff --git a/src/desktop.c b/src/desktop.c index 51a79276..ce267b61 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -344,7 +344,8 @@ desktop_surface_and_view_at(struct server *server, double lx, double ly, } struct view * -desktop_view_at_cursor(struct server *server) { +desktop_view_at_cursor(struct server *server) +{ double sx, sy; struct wlr_surface *surface; int view_area = LAB_SSD_NONE; diff --git a/src/output.c b/src/output.c index 239a1d02..f7cfa944 100644 --- a/src/output.c +++ b/src/output.c @@ -948,9 +948,12 @@ new_output_notify(struct wl_listener *listener, void *data) struct server *server = wl_container_of(listener, server, new_output); struct wlr_output *wlr_output = data; - /* Configures the output created by the backend to use our allocator - * and our renderer. Must be done once, before commiting the output */ - if (!wlr_output_init_render(wlr_output, server->allocator, server->renderer)) { + /* + * Configures the output created by the backend to use our allocator + * and our renderer. Must be done once, before commiting the output + */ + if (!wlr_output_init_render(wlr_output, server->allocator, + server->renderer)) { wlr_log(WLR_ERROR, "unable to init output renderer"); return; } diff --git a/src/server.c b/src/server.c index b84c7caf..5aca013d 100644 --- a/src/server.c +++ b/src/server.c @@ -185,10 +185,12 @@ server_init(struct server *server) */ drop_permissions(); - /* Autocreates a renderer, either Pixman, GLES2 or Vulkan for us. The user - * can also specify a renderer using the WLR_RENDERER env var. + /* + * Autocreates a renderer, either Pixman, GLES2 or Vulkan for us. The + * user can also specify a renderer using the WLR_RENDERER env var. * The renderer is responsible for defining the various pixel formats it - * supports for shared memory, this configures that for clients. */ + * supports for shared memory, this configures that for clients. + */ server->renderer = wlr_renderer_autocreate(server->backend); if (!server->renderer) { wlr_log(WLR_ERROR, "unable to create renderer"); @@ -197,11 +199,13 @@ server_init(struct server *server) wlr_renderer_init_wl_display(server->renderer, server->wl_display); - /* Autocreates an allocator for us. - * The allocator is the bridge between the renderer and the backend. It - * handles the buffer creation, allowing wlroots to render onto the - * screen */ - server->allocator = wlr_allocator_autocreate(server->backend, server->renderer); + /* + * Autocreates an allocator for us. The allocator is the bridge between + * the renderer and the backend. It handles the buffer creation, + * allowing wlroots to render onto the screen + */ + server->allocator = wlr_allocator_autocreate( + server->backend, server->renderer); if (!server->allocator) { wlr_log(WLR_ERROR, "unable to create allocator"); exit(EXIT_FAILURE);