]> git.mdlowis.com Git - proto/labwc.git/commitdiff
Remove clang-format on/off comments
authorJohan Malm <jgm323@gmail.com>
Sat, 31 Oct 2020 15:33:46 +0000 (15:33 +0000)
committerJohan Malm <jgm323@gmail.com>
Sat, 31 Oct 2020 15:33:46 +0000 (15:33 +0000)
src/common/dir.c
src/output.c
src/theme/theme-builtin.c
src/theme/theme.c

index f556058792ce812fc77f0c05e3e0e9f3c1392030..c3a7f09ee617003a840069be22dbc51afc2e5d0c 100644 (file)
@@ -18,7 +18,6 @@ struct dir {
        const char *path;
 };
 
-/* clang-format off */
 static struct dir config_dirs[] = {
        { "XDG_CONFIG_HOME", "labwc" },
        { "HOME", ".config/labwc" },
@@ -37,7 +36,6 @@ static struct dir theme_dirs[] = {
        { NULL, "opt/share/themes" },
        { NULL, NULL }
 };
-/* clang-format on */
 
 static bool
 isdir(const char *path)
index c1e6c03e0698f091b27a6cd9d11aa9eeaa6f4893..a2f94107b749dd6fce09762d142b3f53a14cc257 100644 (file)
@@ -29,15 +29,15 @@ draw_line(struct draw_data *d, int x1, int y1, int x2, int y2)
        wlr_render_rect(d->renderer, &box, d->rgba, d->transform_matrix);
 }
 
-/* clang-format off */
 static void draw_rect_unfilled(struct draw_data *d, struct wlr_box box)
 {
        draw_line(d, box.x, box.y, box.x + box.width - 1, box.y);
-       draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1, box.y + box.height - 1);
-       draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1, box.y + box.height - 1);
+       draw_line(d, box.x + box.width - 1, box.y, box.x + box.width - 1,
+               box.y + box.height - 1);
+       draw_line(d, box.x, box.y + box.height - 1, box.x + box.width - 1,
+               box.y + box.height - 1);
        draw_line(d, box.x, box.y, box.x, box.y + box.height - 1);
 }
-/* clang-format on */
 
 static void
 shrink(struct wlr_box *box, int size)
index e99f78f2b1a8aa18a4afe5f2a82996eec52ebc58..e1f93e6783dc6ff3738a07b6522faa41f34819ff 100644 (file)
@@ -11,7 +11,6 @@
 
 #include "theme/theme.h"
 
-/* clang-format off */
 void theme_builtin(void)
 {
        parse_hexstr("#589bda", theme.window_active_title_bg_color);
@@ -20,4 +19,3 @@ void theme_builtin(void)
        parse_hexstr("#ffffff", theme.window_active_button_unpressed_image_color);
        parse_hexstr("#000000", theme.window_inactive_button_unpressed_image_color);
 }
-/* clang-format on */
index 24663a5371829d484c302934a57d85f78e91a4b0..ecbb22a4e5f7cbaaf213f45b8e91d76c03f3b5f3 100644 (file)
@@ -48,7 +48,6 @@ match(const gchar *pattern, const gchar *string)
        return (bool)g_pattern_match_simple(pattern, string);
 }
 
-/* clang-format off */
 static void entry(const char *key, const char *value)
 {
        if (!key || !value) {
@@ -66,7 +65,6 @@ static void entry(const char *key, const char *value)
                parse_hexstr(value, theme.window_inactive_button_unpressed_image_color);
        }
 }
-/* clang-format on */
 
 static void
 parse_config_line(char *line, char **key, char **value)