X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fdisplay.cc;h=b6fcab07e94df3b18e367a5ac42e5f0c41e88a72;hb=d3b7c84d4c640face48dfb54d70de2bff1551429;hp=459244283e4a99f59fa4aa50ca45346f5f0a802c;hpb=ace8c8896aa13a6fc4e489277cf9c96f49175322;p=chaz%2Fopenbox diff --git a/otk/display.cc b/otk/display.cc index 45924428..b6fcab07 100644 --- a/otk/display.cc +++ b/otk/display.cc @@ -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(_screenInfoList.size())); + return &_screenInfoList[snum]; +}