X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=57bf5161cf75614765292d8400f17e7d18ef5eae;hb=5a9f3b5de23068acef28ee34477175f1d42c980b;hp=d6111ce2b40a7a9ba255c3b9785ecae1f8b30b04;hpb=9d5865a1603733e62fda7c8d61024cb05bf6792c;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index d6111ce2..57bf5161 100644 --- a/src/client.cc +++ b/src/client.cc @@ -5,7 +5,7 @@ #endif #include "client.hh" -#include "screen.hh" +#include "bbscreen.hh" #include "openbox.hh" #include "otk/display.hh" #include "otk/property.hh" @@ -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;