all repos — fluxbox @ 5cdb896772810ad2ac5187b386ed95d5b526392e

custom fork of the fluxbox windowmanager

some extra checks
fluxgen fluxgen
commit

5cdb896772810ad2ac5187b386ed95d5b526392e

parent

e8659c7f1774c7de0965a2fc6a9e5b9680cfbdaa

1 files changed, 7 insertions(+), 2 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// 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 @@ } else

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() &&