summaryrefslogtreecommitdiff
path: root/openbox/actions/moveresizeto.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/actions/moveresizeto.c')
-rw-r--r--openbox/actions/moveresizeto.c6
1 files changed, 5 insertions, 1 deletions
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);