aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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() &&