]> Dogcows Code - chaz/openbox/blobdiff - otk/display.cc
use client messages to switch desktops/move windows between desktops
[chaz/openbox] / otk / display.cc
index 3a15ff22ecb16b05a30fee590047b359ce108759..21ffcd5d85442992ec19c8bb7d987631519ffecf 100644 (file)
@@ -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)
This page took 0.022368 seconds and 4 git commands to generate.