mouse: fix client snapping

Signed-off-by: Julien Danjou <julien@danjou.info>

Conflicts:

	mouse.c
This commit is contained in:
Julien Danjou 2008-08-18 11:06:17 +02:00
parent deb3cc26d8
commit 84a2a34aa6
1 changed files with 3 additions and 3 deletions

View File

@ -92,11 +92,11 @@ mouse_snapclient(Client *c, area_t geometry)
mouse_snapclienttogeometry_inside(geometry, screen_geometry, snap); mouse_snapclienttogeometry_inside(geometry, screen_geometry, 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(&snapper->titlebar, snapper_geometry = titlebar_geometry_add(&snapper->titlebar,
snapper_geometry); snapper_geometry);
geometry = geometry =