From d6dab9139f97a5e48f6d5e138f8f20f002c00e43 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Tue, 24 Feb 2026 16:08:13 +0900 Subject: [PATCH] action: reorder ACTION_TYPE_MOVE enum entry This makes the code a bit easier to read by aligning ACTION_TYPE_MOVE and ACTION_TYPE_MOVE together. --- src/action.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/action.c b/src/action.c index dd6011ce..a195f67c 100644 --- a/src/action.c +++ b/src/action.c @@ -97,9 +97,9 @@ enum action_type { ACTION_TYPE_FOCUS, ACTION_TYPE_UNFOCUS, ACTION_TYPE_ICONIFY, - ACTION_TYPE_MOVE, ACTION_TYPE_RAISE, ACTION_TYPE_LOWER, + ACTION_TYPE_MOVE, ACTION_TYPE_RESIZE, ACTION_TYPE_RESIZE_RELATIVE, ACTION_TYPE_MOVETO, @@ -1260,6 +1260,16 @@ run_action(struct view *view, struct server *server, struct action *action, view_minimize(view, true); } break; + case ACTION_TYPE_RAISE: + if (view) { + view_move_to_front(view); + } + break; + case ACTION_TYPE_LOWER: + if (view) { + view_move_to_back(view); + } + break; case ACTION_TYPE_MOVE: if (view) { /* @@ -1274,16 +1284,6 @@ run_action(struct view *view, struct server *server, struct action *action, LAB_EDGE_NONE); } break; - case ACTION_TYPE_RAISE: - if (view) { - view_move_to_front(view); - } - break; - case ACTION_TYPE_LOWER: - if (view) { - view_move_to_back(view); - } - break; case ACTION_TYPE_RESIZE: if (view) { /*