*** empty log message ***
This commit is contained in:
parent
efc875f5f2
commit
375156c112
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@
|
||||||
%}
|
%}
|
||||||
%extend ob::OBScreen {
|
%extend ob::OBScreen {
|
||||||
OBClient *client(int i) {
|
OBClient *client(int i) {
|
||||||
|
if (i >= (int)self->clients.size())
|
||||||
|
return NULL;
|
||||||
ob::OBScreen::ClientList::iterator it = self->clients.begin();
|
ob::OBScreen::ClientList::iterator it = self->clients.begin();
|
||||||
std::advance(it,i);
|
std::advance(it,i);
|
||||||
return *it;
|
return *it;
|
||||||
|
|
Loading…
Reference in a new issue