mirror of
https://github.com/labwc/labwc.git
synced 2026-03-22 05:33:57 -04:00
tree-wide: wrap a few extra-long lines
This commit is contained in:
parent
cb49bddf63
commit
8d46da9db1
5 changed files with 10 additions and 5 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue