broke up long lines

This commit is contained in:
nicolas3121 2024-04-20 11:06:36 +02:00
parent 8c737d6e23
commit 4a96d1eddd

View file

@ -669,7 +669,8 @@ run_if_action(struct view *view, struct server *server, struct action *action)
} }
static struct view* static struct view*
directional_target_window(struct view *view, struct server *server, enum view_edge direction, bool wrap) directional_target_window(struct view *view, struct server *server,
enum view_edge direction, bool wrap)
{ {
int dx, dy, distance, distance_wrap; int dx, dy, distance, distance_wrap;
struct view *v; struct view *v;
@ -844,7 +845,8 @@ actions_run(struct view *activator, struct server *server,
case ACTION_TYPE_DIRECTIONAL_TARGET_WINDOW: case ACTION_TYPE_DIRECTIONAL_TARGET_WINDOW:
if (view) { if (view) {
enum view_edge direction = action_get_int(action, "direction", 0); enum view_edge direction = action_get_int(action, "direction", 0);
struct view *closest_view = directional_target_window(view, server, direction, /*wrap*/ true); struct view *closest_view = directional_target_window(view, server,
direction, /*wrap*/ true);
if (closest_view) { if (closest_view) {
desktop_focus_view(closest_view, /*raise*/ true); desktop_focus_view(closest_view, /*raise*/ true);
} }