mirror of
https://github.com/labwc/labwc.git
synced 2026-03-17 05:33:47 -04:00
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.
This commit is contained in:
parent
00f63622b5
commit
d6dab9139f
1 changed files with 11 additions and 11 deletions
22
src/action.c
22
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) {
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue