X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.cc;h=21ffcd5d85442992ec19c8bb7d987631519ffecf;hb=4c768d5d63154e416e1282396dc48492d0585d42;hp=3a15ff22ecb16b05a30fee590047b359ce108759;hpb=f3865bb12c2b3506e181f15f09b8429a59a618f8;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index 3a15ff22..21ffcd5d 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -176,6 +176,16 @@ const ScreenInfo* OBDisplay::screenInfo(int snum) { } +const ScreenInfo* OBDisplay::findScreen(Window root) +{ + ScreenInfoList::iterator it, end = _screenInfoList.end(); + for (it = _screenInfoList.begin(); it != end; ++it) + if (it->rootWindow() == root) + return &(*it); + return 0; +} + + void OBDisplay::grab() { if (_grab_count == 0)