aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2008-05-23 18:57:35 +0000
committerokan2008-05-23 18:57:35 +0000
commit72060483c25555ebf81f2abf469c316f94439996 (patch)
tree79fda08a9af1a1dce1cbe1e3d79b3061d18196fd
parent15ebf6bebd521e4e1fcb64959ea5a6180b9b951c (diff)
downloadcwm-72060483c25555ebf81f2abf469c316f94439996.tar.gz
make sure to take bwdith into account when placing a new window.
ok oga@
Diffstat (limited to '')
-rw-r--r--client.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/client.c b/client.c
index 691f9bd..6a45003 100644
--- a/client.c
+++ b/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);