From 8d46da9db1dcd83a87759ab19a1589dc4048bc0f Mon Sep 17 00:00:00 2001 From: John Lindgren Date: Thu, 5 Mar 2026 21:36:02 -0500 Subject: [PATCH] tree-wide: wrap a few extra-long lines --- src/action.c | 3 ++- src/input/cursor.c | 3 ++- src/input/keyboard.c | 3 ++- src/scaled-buffer/scaled-icon-buffer.c | 3 ++- src/ssd/ssd-button.c | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/action.c b/src/action.c index 04f0ca16..75cd49c3 100644 --- a/src/action.c +++ b/src/action.c @@ -785,7 +785,8 @@ show_menu(struct view *view, struct cursor_context *ctx, * x/y can be number, "center" or a %percent of screen dimensions */ if (pos_x && pos_y) { - struct output *output = output_nearest_to(g_server.seat.cursor->x, g_server.seat.cursor->y); + struct output *output = output_nearest_to( + g_server.seat.cursor->x, g_server.seat.cursor->y); struct wlr_box usable = output_usable_area_in_layout_coords(output); if (!strcasecmp(pos_x, "center")) { diff --git a/src/input/cursor.c b/src/input/cursor.c index 77ff74f4..7d2970f5 100644 --- a/src/input/cursor.c +++ b/src/input/cursor.c @@ -659,7 +659,8 @@ cursor_process_motion(uint32_t time, double *sx, double *sy) * moving/resizing the wrong view */ mousebind->pressed_in_context = false; - actions_run(seat->pressed.ctx.view, &mousebind->actions, &seat->pressed.ctx); + actions_run(seat->pressed.ctx.view, + &mousebind->actions, &seat->pressed.ctx); } } diff --git a/src/input/keyboard.c b/src/input/keyboard.c index 6badbb12..f859eb2b 100644 --- a/src/input/keyboard.c +++ b/src/input/keyboard.c @@ -245,7 +245,8 @@ match_keybinding(struct keyinfo *keyinfo, { if (!is_virtual) { /* First try keycodes */ - struct keybind *keybind = match_keybinding_for_sym(keyinfo->modifiers, XKB_KEY_NoSymbol, keyinfo->xkb_keycode); + struct keybind *keybind = match_keybinding_for_sym( + keyinfo->modifiers, XKB_KEY_NoSymbol, keyinfo->xkb_keycode); if (keybind) { wlr_log(WLR_DEBUG, "keycode matched"); return keybind; diff --git a/src/scaled-buffer/scaled-icon-buffer.c b/src/scaled-buffer/scaled-icon-buffer.c index 00e2036a..f4cfb140 100644 --- a/src/scaled-buffer/scaled-icon-buffer.c +++ b/src/scaled-buffer/scaled-icon-buffer.c @@ -82,7 +82,8 @@ load_client_icon(struct scaled_icon_buffer *self, int icon_size, double scale) static struct lab_data_buffer * load_server_icon(struct scaled_icon_buffer *self, int icon_size, double scale) { - struct lab_img *img = desktop_entry_load_icon_from_app_id(self->view_app_id, icon_size, scale); + struct lab_img *img = desktop_entry_load_icon_from_app_id( + self->view_app_id, icon_size, scale); if (img) { wlr_log(WLR_DEBUG, "loaded icon by app_id"); return img_to_buffer(img, self->width, self->height, scale); diff --git a/src/ssd/ssd-button.c b/src/ssd/ssd-button.c index 4a3cf16e..7342dfad 100644 --- a/src/ssd/ssd-button.c +++ b/src/ssd/ssd-button.c @@ -50,7 +50,8 @@ attach_ssd_button(struct wl_list *button_parts, enum lab_node_type type, if (type == LAB_NODE_BUTTON_WINDOW_ICON) { struct scaled_icon_buffer *icon_buffer = - scaled_icon_buffer_create(root, button_width - 2 * icon_padding, button_height); + scaled_icon_buffer_create(root, button_width + - 2 * icon_padding, button_height); assert(icon_buffer); struct wlr_scene_node *icon_node = &icon_buffer->scene_buffer->node; scaled_icon_buffer_set_view(icon_buffer, view);