]> Dogcows Code - chaz/openbox/blobdiff - otk/display.cc
xeventhandler can handle everything except client messages now.
[chaz/openbox] / otk / display.cc
index 459244283e4a99f59fa4aa50ca45346f5f0a802c..b6fcab07e94df3b18e367a5ac42e5f0c41e88a72 100644 (file)
@@ -41,9 +41,9 @@ namespace otk {
 
 Display *OBDisplay::display = (Display*) 0;
 bool OBDisplay::_shape = false;
-int  OBDisplay::_shape_event_basep;
+int  OBDisplay::_shape_event_basep = 0;
 bool OBDisplay::_xinerama = false;
-int  OBDisplay::_xinerama_event_basep;
+int  OBDisplay::_xinerama_event_basep = 0;
 unsigned int OBDisplay::_mask_list[8];
 OBDisplay::ScreenInfoList OBDisplay::_screenInfoList;
 BGCCache *OBDisplay::_gccache = (BGCCache*) 0;
@@ -158,6 +158,11 @@ void OBDisplay::destroy()
 }
 
 
+const ScreenInfo* OBDisplay::screenInfo(int snum) {
+  assert(snum >= 0);
+  assert(snum < static_cast<int>(_screenInfoList.size()));
+  return &_screenInfoList[snum];
+}
 
 
 
This page took 0.022323 seconds and 4 git commands to generate.