aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-10-26 20:59:07 (GMT)
committerfluxgen <fluxgen>2003-10-26 20:59:07 (GMT)
commit5cdb896772810ad2ac5187b386ed95d5b526392e (patch)
tree110bc0205680d19ad9ca2106ee1cd206eedfe883
parente8659c7f1774c7de0965a2fc6a9e5b9680cfbdaa (diff)
downloadfluxbox-5cdb896772810ad2ac5187b386ed95d5b526392e.zip
fluxbox-5cdb896772810ad2ac5187b386ed95d5b526392e.tar.bz2
some extra checks
-rw-r--r--src/Window.cc9
1 files 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 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.241 2003/10/06 06:22:43 rathnor Exp $ 25// $Id: Window.cc,v 1.242 2003/10/26 20:59:07 fluxgen Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -499,8 +499,13 @@ void FluxboxWindow::init() {
499 place_window = false; 499 place_window = false;
500 500
501 } 501 }
502 if (wattrib.width <= 0)
503 wattrib.width = 1;
504 if (wattrib.height <= 0)
505 wattrib.height = 1;
502 506
503 frame().moveResizeForClient(wattrib.x, wattrib.y, wattrib.width, wattrib.height); 507 frame().moveResizeForClient(wattrib.x, wattrib.y,
508 wattrib.width, wattrib.height);
504 509
505 // if we're a transient then we should be on the same layer as our parent 510 // if we're a transient then we should be on the same layer as our parent
506 if (m_client->isTransient() && 511 if (m_client->isTransient() &&