diff --git a/src/screen.c b/src/screen.c index 9c69c79..6e5caf0 100644 --- a/src/screen.c +++ b/src/screen.c @@ -3602,7 +3602,7 @@ setCurrentDesktop (CompScreen *s, unsigned long data; CompWindow *w; - if (desktop < 0 || desktop >= s->nDesktop) + if (desktop >= s->nDesktop) return; if (desktop == s->currentDesktop)