aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2013-01-02 21:41:14 +0000
committerokan2013-01-02 21:41:14 +0000
commit1f61f7e4a9bf381aa66667f07087d1161436eae8 (patch)
treecdc2f8c96e421e775003aaff92a1a03d978efb29 /kbfunc.c
parent97779c379983abeabc495ed29518853dd455422a (diff)
downloadcwm-1f61f7e4a9bf381aa66667f07087d1161436eae8.tar.gz
pass the screen workarea, as opposed to viewarea, allowing client
snapping to honor gap.
Diffstat (limited to '')
-rw-r--r--kbfunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 9f35996..8f03732 100644
--- a/kbfunc.c
+++ b/kbfunc.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.
*
- * $OpenBSD: kbfunc.c,v 1.73 2013/01/02 21:37:21 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.74 2013/01/02 21:41:14 okan Exp $
*/
#include <sys/param.h>
@@ -102,10 +102,10 @@ kbfunc_moveresize(struct client_ctx *cc, union arg *arg)
cc->geom.x += client_snapcalc(cc->geom.x,
cc->geom.x + cc->geom.w + (cc->bwidth * 2),
- sc->view.x, sc->view.w, Conf.snapdist);
+ sc->work.x, sc->work.w, Conf.snapdist);
cc->geom.y += client_snapcalc(cc->geom.y,
cc->geom.y + cc->geom.h + (cc->bwidth * 2),
- sc->view.y, sc->view.h, Conf.snapdist);
+ sc->work.y, sc->work.h, Conf.snapdist);
client_move(cc);
xu_ptr_getpos(cc->win, &x, &y);