From 5cdb896772810ad2ac5187b386ed95d5b526392e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sun, 26 Oct 2003 20:59:07 +0000 Subject: some extra checks --- src/Window.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index f7c80cd..cde054a 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Window.cc,v 1.241 2003/10/06 06:22:43 rathnor Exp $ +// $Id: Window.cc,v 1.242 2003/10/26 20:59:07 fluxgen Exp $ #include "Window.hh" @@ -499,8 +499,13 @@ void FluxboxWindow::init() { place_window = false; } + if (wattrib.width <= 0) + wattrib.width = 1; + if (wattrib.height <= 0) + wattrib.height = 1; - frame().moveResizeForClient(wattrib.x, wattrib.y, wattrib.width, wattrib.height); + frame().moveResizeForClient(wattrib.x, wattrib.y, + wattrib.width, wattrib.height); // if we're a transient then we should be on the same layer as our parent if (m_client->isTransient() && -- cgit v0.11.2