From: Ph42oN Date: Sun, 2 Jul 2023 20:26:09 +0000 (+0300) Subject: action: disable MoveRelative for fullscreen and unmaximize X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=c0c40e14322e67246ed7f8c6743f150ed65404aa;p=proto%2Flabwc.git action: disable MoveRelative for fullscreen and unmaximize --- diff --git a/src/action.c b/src/action.c index 6dd370d0..11cb6fcf 100644 --- a/src/action.c +++ b/src/action.c @@ -629,9 +629,10 @@ actions_run(struct view *activator, struct server *server, } break; case ACTION_TYPE_MOVE_RELATIVE: - if (view) { + if (view && !view->fullscreen) { 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); } break;