]> Dogcows Code - chaz/openbox/blobdiff - otk/display.cc
stop compressing enter/leave events.. this might be responsible for the focu sfuckups?
[chaz/openbox] / otk / display.cc
index 3a15ff22ecb16b05a30fee590047b359ce108759..32674be9736787564ebb6799f33976a325741aca 100644 (file)
@@ -65,6 +65,8 @@ int OBDisplay::xerrorHandler(Display *d, XErrorEvent *e)
   {
     XGetErrorText(d, e->error_code, errtxt, 128);
     printf("X Error: %s\n", errtxt);
+//    if (e->error_code != BadWindow)
+//      abort();
   }
 #else
   (void)d;
@@ -176,6 +178,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.025562 seconds and 4 git commands to generate.