X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fsurface.cc;h=9dfb88898043faaac22541e4060c4bbb03e63649;hb=59ef3022a4ce0a23e6d54f7d73a2aa77721e9cc9;hp=70acf70ac5f16289897bcdad0be7c99f94c94928;hpb=68a6fce53badb38ba3dc387c4b5c86c02801f657;p=chaz%2Fopenbox diff --git a/otk/surface.cc b/otk/surface.cc index 70acf70a..9dfb8889 100644 --- a/otk/surface.cc +++ b/otk/surface.cc @@ -57,9 +57,11 @@ void Surface::createObjects() _pixmap = XCreatePixmap(**display, info->rootWindow(), _size.x(), _size.y(), info->depth()); + assert(_pixmap != None); _xftdraw = XftDrawCreate(**display, _pixmap, info->visual(), info->colormap()); + assert(_xftdraw); } void Surface::destroyObjects()