Explorar o código

removed unneeded offset recalculation, thanks Jukka, let's see if this breaks some other client

garbeam@gmail.com %!s(int64=14) %!d(string=hai) anos
pai
achega
b3c5f5435a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dwm.c

+ 2 - 2
dwm.c

@@ -1112,8 +1112,8 @@ manage(Window w, XWindowAttributes *wa) {
 		applyrules(c);
 	}
 	/* geometry */
-	c->x = c->oldx = wa->x + c->mon->wx;
-	c->y = c->oldy = wa->y + c->mon->wy;
+	c->x = c->oldx = wa->x;
+	c->y = c->oldy = wa->y;
 	c->w = c->oldw = wa->width;
 	c->h = c->oldh = wa->height;
 	c->oldbw = wa->border_width;