From: Dana Jansens Date: Wed, 25 Dec 2002 00:27:10 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=375156c1125cfad326642d7b5882746f0b9c3554;p=chaz%2Fopenbox *** empty log message *** --- diff --git a/src/openbox.i b/src/openbox.i index 3dbe190c..a3192756 100644 --- a/src/openbox.i +++ b/src/openbox.i @@ -37,6 +37,8 @@ %} %extend ob::OBScreen { OBClient *client(int i) { + if (i >= (int)self->clients.size()) + return NULL; ob::OBScreen::ClientList::iterator it = self->clients.begin(); std::advance(it,i); return *it;