dont assert when given an out-of-range desktop

This commit is contained in:
Dana Jansens 2003-01-12 19:53:13 +00:00
parent 718be4c911
commit bfa46e06b6

View file

@ -639,8 +639,6 @@ void Screen::restack(bool raise, Client *client)
void Screen::changeDesktop(long desktop)
{
assert(desktop >= 0 && desktop < _num_desktops);
if (!(desktop >= 0 && desktop < _num_desktops)) return;
printf("Moving to desktop %ld\n", desktop);