From 70d89c4452fa58868351e60f59c17fc10c3a3db9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 18 Aug 2008 11:04:50 +0200 Subject: [PATCH] mouse: fix client snapping Signed-off-by: Julien Danjou --- mouse.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mouse.c b/mouse.c index 606565c5..de48a700 100644 --- a/mouse.c +++ b/mouse.c @@ -150,12 +150,12 @@ mouse_snapclient(client_t *c, area_t geometry, int snap) mouse_snapclienttogeometry_inside(geometry, screen_geometry_barless, snap); for(snapper = globalconf.clients; snapper; snapper = snapper->next) - if(snapper != c && client_isvisible(c, c->screen)) + if(snapper != c && client_isvisible(snapper, c->screen)) { snapper_geometry = snapper->geometry; - snapper_geometry.width += 2 * c->border; - snapper_geometry.height += 2 * c->border; - snapper_geometry = titlebar_geometry_add(c->titlebar, c->border, snapper_geometry); + snapper_geometry.width += 2 * snapper->border; + snapper_geometry.height += 2 * snapper->border; + snapper_geometry = titlebar_geometry_add(snapper->titlebar, snapper->border, snapper_geometry); geometry = mouse_snapclienttogeometry_outside(geometry, snapper_geometry,