From fc25ef5568291528f6e1c3463b3b142139eb8e8d Mon Sep 17 00:00:00 2001 From: aura Date: Fri, 2 Oct 2026 00:29:58 +0200 Subject: add tiling --- openbox/actions/moveresizeto.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openbox/actions/moveresizeto.c') diff --git a/openbox/actions/moveresizeto.c b/openbox/actions/moveresizeto.c index 95de0e98..73de6a0f 100644 --- a/openbox/actions/moveresizeto.c +++ b/openbox/actions/moveresizeto.c @@ -1,4 +1,5 @@ #include "openbox/actions.h" +#include "openbox/tiling.h" #include "openbox/client.h" #include "openbox/screen.h" #include "openbox/frame.h" @@ -118,7 +119,9 @@ static gboolean run_func(ObActionsData *data, gpointer options) case PREV_MONITOR: mon = (cmon == 0) ? (screen_num_monitors - 1) : (cmon - 1); break; default: - g_assert_not_reached(); + if (mon >= screen_num_monitors) + mon = cmon; + break; } area = screen_area(c->desktop, mon, NULL); @@ -193,6 +196,7 @@ static gboolean run_func(ObActionsData *data, gpointer options) actions_client_move(data, TRUE); client_configure(c, x, y, w, h, TRUE, TRUE, FALSE); + tiling_action_moved(data->client); actions_client_move(data, FALSE); g_slice_free(Rect, area); -- cgit v1.2.3