]> Dogcows Code - chaz/openbox/commitdiff
*** empty log message ***
authorDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:27:10 +0000 (00:27 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 25 Dec 2002 00:27:10 +0000 (00:27 +0000)
src/openbox.i

index 3dbe190cc417f76985630b6948c2e99d159756a1..a3192756eee5aaa8b883cd1c6f13ddfe636a3bf5 100644 (file)
@@ -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;
This page took 0.021691 seconds and 4 git commands to generate.