diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-07 02:24:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-07 02:24:43 +0000 |
| commit | 711a7d8c5623814c374ed6f56476bc616cb9391f (patch) | |
| tree | d57e347fb2a2c53aee52c5a1f9aebb6719a260b6 /otk/display.cc | |
| parent | d7cc09cebd23e052f230414f0ad7fb385e3cd2ef (diff) | |
supply python routines for next/prev workspace
Diffstat (limited to 'otk/display.cc')
| -rw-r--r-- | otk/display.cc | 10 |
1 files changed, 10 insertions, 0 deletions
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) |
