Remove incorrect assertion for MoveResizeTo
authorMikael Magnusson <mikachu@gmail.com>
Fri, 20 May 2022 14:22:44 +0000 (16:22 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Fri, 20 May 2022 14:27:21 +0000 (16:27 +0200)
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.

openbox/actions/moveresizeto.c

index 2dbddd54944a2f32eb702e353f80459efcef6493..3b9be7049d4a30036c1919b32203eb01822a803f 100644 (file)
@@ -118,7 +118,6 @@ 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();
         }
 
         area = screen_area(c->desktop, mon, NULL);