diff --git a/docs/labwc-actions.5.scd b/docs/labwc-actions.5.scd index a31c77b8..e2ba6217 100644 --- a/docs/labwc-actions.5.scd +++ b/docs/labwc-actions.5.scd @@ -48,6 +48,10 @@ Actions are used in menus and keyboard/mouse bindings. ** Move to position (x, y) +** + Move window relative to its current position. Positive value of x moves + it right, negative left. Positive value of y moves it down, negative up. + ** Resize window to fill half the output in the given direction. Supports directions "left", "up", "right", "down" and "center". diff --git a/src/action.c b/src/action.c index d54c657a..34305358 100644 --- a/src/action.c +++ b/src/action.c @@ -614,7 +614,7 @@ actions_run(struct view *activator, struct server *server, if (view) { int x = get_arg_value_int(action, "x", 0); int y = get_arg_value_int(action, "y", 0); - view_move(view, view->current.x + x, view->current.y + y); + view_move(view, view->pending.x + x, view->pending.y + y); } break; case ACTION_TYPE_GO_TO_DESKTOP: {