From 711a7d8c5623814c374ed6f56476bc616cb9391f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 7 Jan 2003 02:24:43 +0000 Subject: supply python routines for next/prev workspace --- otk/display.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'otk/display.cc') 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) -- cgit v1.2.3