diff options
author | okan | 2015-06-26 17:17:46 +0000 |
---|---|---|
committer | okan | 2015-06-26 17:17:46 +0000 |
commit | 0a8714c24e91e851245d33469341663bf594ab95 (patch) | |
tree | 98a43650f7748eefff2eee204a5a1188576bcaff /mousefunc.c | |
parent | 8ee45f99bd44dcf347cc84ebb8afdddda5b28997 (diff) | |
download | cwm-0a8714c24e91e851245d33469341663bf594ab95.tar.gz |
Mechanical change from xinerama to region backed areas.
Diffstat (limited to '')
-rw-r--r-- | mousefunc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mousefunc.c b/mousefunc.c index 166acfd..5733f0a 100644 --- a/mousefunc.c +++ b/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.91 2015/06/08 15:41:27 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.92 2015/06/26 17:17:46 okan Exp $ */ #include <sys/types.h> @@ -123,7 +123,7 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg) XEvent ev; Time ltime = 0; struct screen_ctx *sc = cc->sc; - struct geom xine; + struct geom area; int px, py; client_raise(cc); @@ -149,15 +149,15 @@ mousefunc_client_move(struct client_ctx *cc, union arg *arg) cc->geom.x = ev.xmotion.x_root - px - cc->bwidth; cc->geom.y = ev.xmotion.y_root - py - cc->bwidth; - xine = screen_find_xinerama(sc, + area = screen_area(sc, cc->geom.x + cc->geom.w / 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); + area.x, area.x + area.w, sc->snapdist); cc->geom.y += client_snapcalc(cc->geom.y, cc->geom.y + cc->geom.h + (cc->bwidth * 2), - xine.y, xine.y + xine.h, sc->snapdist); + area.y, area.y + area.h, sc->snapdist); client_move(cc); break; |