aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2013-12-13 22:39:13 +0000
committerokan2013-12-13 22:39:13 +0000
commit2f199b5ad84adda4a8b7d72b78529d68ec037786 (patch)
tree9a52007e2980e107873674841b7b4a7d6d5096a4 /kbfunc.c
parentab7c1ffd6e208c0d7bfd9e1ca4be0eecbfac1b40 (diff)
downloadcwm-2f199b5ad84adda4a8b7d72b78529d68ec037786.tar.gz
Teach screen_find_xinerama() to apply gap only when told to do so;
adjust callers. Needed for an upcoming feature.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kbfunc.c b/kbfunc.c
index aa1c304..ae3ba71 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.83 2013/12/13 21:51:56 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.84 2013/12/13 22:39:13 okan Exp $
*/
#include <sys/param.h>
@@ -102,7 +102,7 @@ kbfunc_client_moveresize(struct client_ctx *cc, union arg *arg)
xine = screen_find_xinerama(sc,
cc->geom.x + cc->geom.w / 2,
- cc->geom.y + cc->geom.h / 2);
+ cc->geom.y + cc->geom.h / 2, CWM_GAP);
cc->geom.x += client_snapcalc(cc->geom.x,
cc->geom.x + cc->geom.w + (cc->bwidth * 2),
xine.x, xine.x + xine.w, sc->snapdist);