]> Dogcows Code - chaz/openbox/commitdiff
dont assert when given an out-of-range desktop
authorDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 19:53:13 +0000 (19:53 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 19:53:13 +0000 (19:53 +0000)
src/screen.cc

index 2ccc35f062656acf2c8d1f20752446b7fa3d63a8..0d61801c1857ed6dc01fe1c83392624c28cd0b3e 100644 (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);
This page took 0.022688 seconds and 4 git commands to generate.