X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=57bf5161cf75614765292d8400f17e7d18ef5eae;hb=7df3b620e21777dbefa24f381c1a95fafed1c16e;hp=f770fecd9f842c6625ed89ced3a03ddaef487f46;hpb=73f6bb1a7b6bb5f8b9cf22587722d713a1f15b59;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index f770fecd..57bf5161 100644 --- a/src/client.cc +++ b/src/client.cc @@ -27,6 +27,8 @@ OBClient::OBClient(int screen, Window window) { assert(window); + ignore_unmaps = 0; + // update EVERYTHING the first time!! // the state is kinda assumed to be normal. is this right? XXX @@ -272,7 +274,10 @@ void OBClient::getMwmHints() void OBClient::getArea() { XWindowAttributes wattrib; - assert(XGetWindowAttributes(otk::OBDisplay::display, _window, &wattrib)); + Status ret; + + ret = XGetWindowAttributes(otk::OBDisplay::display, _window, &wattrib); + assert(ret != BadWindow); _area.setRect(wattrib.x, wattrib.y, wattrib.width, wattrib.height); _border_width = wattrib.border_width;