mouse: fix client snapping

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-18 11:04:50 +02:00
parent f5717587ec
commit 70d89c4452
1 changed files with 4 additions and 4 deletions

View File

@ -150,12 +150,12 @@ mouse_snapclient(client_t *c, area_t geometry, int snap)
mouse_snapclienttogeometry_inside(geometry, screen_geometry_barless, snap); mouse_snapclienttogeometry_inside(geometry, screen_geometry_barless, snap);
for(snapper = globalconf.clients; snapper; snapper = snapper->next) 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 = snapper->geometry;
snapper_geometry.width += 2 * c->border; snapper_geometry.width += 2 * snapper->border;
snapper_geometry.height += 2 * c->border; snapper_geometry.height += 2 * snapper->border;
snapper_geometry = titlebar_geometry_add(c->titlebar, c->border, snapper_geometry); snapper_geometry = titlebar_geometry_add(snapper->titlebar, snapper->border, snapper_geometry);
geometry = geometry =
mouse_snapclienttogeometry_outside(geometry, mouse_snapclienttogeometry_outside(geometry,
snapper_geometry, snapper_geometry,