Skip to content

Commit

Permalink
Remove incorrect assertion for MoveResizeTo
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mikachu committed Jan 3, 2023
1 parent 2339b38 commit b0bbaca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbox/actions/moveresizeto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b0bbaca

Please sign in to comment.