]> git.mdlowis.com Git - proto/labwc.git/commitdiff
action: disable MoveRelative for fullscreen and unmaximize
authorPh42oN <julle.ys.57@gmail.com>
Sun, 2 Jul 2023 20:26:09 +0000 (23:26 +0300)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 3 Jul 2023 15:42:43 +0000 (16:42 +0100)
src/action.c

index 6dd370d0db24281a396938119a255ec8d0ebb669..11cb6fcf8459fad0c567f12071af6d2e4d0e38de 100644 (file)
@@ -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;