From: Mikael Magnusson Date: Fri, 20 May 2022 14:22:44 +0000 (+0200) Subject: Remove incorrect assertion for MoveResizeTo X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=8c5099bd06f37bc84d979e2aacc637ea5779ab09;p=mikachu%2Fopenbox.git Remove incorrect assertion for MoveResizeTo This caused gcc to assume the user never specifies a desktop by number, which was not very helpful. Please crash when reaching an assert, thanks. --- diff --git a/openbox/actions/moveresizeto.c b/openbox/actions/moveresizeto.c index 95de0e98..8a8ac4c3 100644 --- a/openbox/actions/moveresizeto.c +++ b/openbox/actions/moveresizeto.c @@ -118,7 +118,7 @@ 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(); + /* desktop specified by number */ } area = screen_area(c->desktop, mon, NULL);