summaryrefslogtreecommitdiff
path: root/app/cwm/mousefunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-13 22:39:14 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-13 22:39:14 +0000
commit0078550bb8d0157602e73a6961648013591d837d (patch)
tree0eb92b09485905f52e18405907e923d87e0f92ea /app/cwm/mousefunc.c
parent6704f56526350b6108d6418c5cc80e2df7e59fae (diff)
Teach screen_find_xinerama() to apply gap only when told to do so;
adjust callers. Needed for an upcoming feature.
Diffstat (limited to 'app/cwm/mousefunc.c')
-rw-r--r--app/cwm/mousefunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/cwm/mousefunc.c b/app/cwm/mousefunc.c
index 18d0a4c0d..4d974eb10 100644
--- a/app/cwm/mousefunc.c
+++ b/app/cwm/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.63 2013/12/13 21:51:56 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.64 2013/12/13 22:39:13 okan Exp $
*/
#include <sys/param.h>
@@ -148,7 +148,7 @@ mousefunc_client_move(struct client_ctx *cc, void *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);