Browse Source

Client: Fix client_above function (multi-head placement)

Martin Duquesnoy 14 years ago
parent
commit
f62e59117f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/client.c

+ 2 - 2
src/client.c

@@ -209,8 +209,8 @@ client_above(Client *c)
      geo.height = spgeo[c->screen].height * 0.75;
      geo.width = spgeo[c->screen].width * 0.75;
 
-     geo.x = ((spgeo[c->screen].y + spgeo[c->screen].height) / 2) - (geo.height / 2);
-     geo.y = ((spgeo[c->screen].x + spgeo[c->screen].width) / 2)- (geo.width / 2);
+     geo.y = spgeo[c->screen].y + (spgeo[c->screen].height / 2) - (geo.height / 2);
+     geo.x = spgeo[c->screen].x + (spgeo[c->screen].width / 2)- (geo.width / 2);
 
      client_moveresize(c, geo, tags[c->screen][c->tag].resizehint);
      client_raise(c);