]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Fix minor style violations
authorJohan Malm <jgm323@gmail.com>
Fri, 26 Nov 2021 19:27:50 +0000 (19:27 +0000)
committerJohan Malm <jgm323@gmail.com>
Fri, 26 Nov 2021 19:27:50 +0000 (19:27 +0000)
include/labwc.h
src/config/rcxml.c
src/desktop.c
src/output.c
src/server.c

index cef1b99e09748f9bde635f76dcb5363888cda44f..27a67abf79fea8b44141a3653537bc799e7d570b 100644 (file)
@@ -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,
index 3392db0c500a1bd9f67e63a72ef30091912f0a0b..982bcb4610a1b6f932e745c664ee9327202e1cc0 100644 (file)
@@ -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);
index 51a792765d83086f9605f170c74ba87197cf4fa1..ce267b6196842f247c08e5a143c37d6e6e2d5524 100644 (file)
@@ -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;
index 239a1d02ff54818983b6e5eba0a897efdd8cd974..f7cfa944977e4d63e2acaae51c3b43bb11f1aec4 100644 (file)
@@ -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;
        }
index b84c7cafb826169d0f63869da5bb1bd6123eaee9..5aca013dde6b37594413bafce545016604e9f4e5 100644 (file)
@@ -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);