summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2008-05-23 18:57:36 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2008-05-23 18:57:36 +0000
commit57e69cbd0d214f1301c60b654457e1679e4e976e (patch)
treee5afd19114930cfa0af75519bc1847aaf3b6fd99
parent0a63aaaea5e621ad71bc494676f18a63e8d600de (diff)
make sure to take bwdith into account when placing a new window.
ok oga@
-rw-r--r--app/cwm/client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index 691f9bd74..6a450035a 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: client.c,v 1.27 2008/05/20 14:50:51 oga Exp $
+ * $Id: client.c,v 1.28 2008/05/23 18:57:35 okan Exp $
*/
#include "headers.h"
@@ -665,9 +665,8 @@ client_placecalc(struct client_ctx *cc)
height = cc->geom.height;
width = cc->geom.width;
-
- yslack = sc->ymax - cc->geom.height;
- xslack = sc->xmax - cc->geom.width;
+ yslack = sc->ymax - cc->geom.height - cc->bwidth;
+ xslack = sc->xmax - cc->geom.width - cc->bwidth;
xu_ptr_getpos(sc->rootwin, &mousex, &mousey);