view: move MoveRelative code from action.c and restore natural geometry

This commit is contained in:
Ph42oN 2023-07-23 12:04:36 +03:00 committed by Consolatis
parent c6e2f667d3
commit cb4afadd01
3 changed files with 19 additions and 4 deletions

View file

@ -667,11 +667,10 @@ actions_run(struct view *activator, struct server *server,
}
break;
case ACTION_TYPE_MOVE_RELATIVE:
if (view && !view->fullscreen) {
if (view) {
int x = get_arg_value_int(action, "x", 0);
int y = get_arg_value_int(action, "y", 0);
view_maximize(view, false, false);
view_move(view, view->pending.x + x, view->pending.y + y);
view_move_relative(view, x, y);
}
break;
case ACTION_TYPE_SEND_TO_DESKTOP: