~ruther/dwl

0a4319720380356f7fdd0c824d53cb9754f219e2 — Devin J. Pohly 5 years ago 749880c
grabsx/y are only used by move now
1 files changed, 0 insertions(+), 5 deletions(-)

M dwl.c
M dwl.c => dwl.c +0 -5
@@ 643,14 643,9 @@ moveresize(Client *c, unsigned int mode)
	 * consumes them itself, to move or resize windows. */
	grabbed_client = c;
	cursor_mode = mode;
	struct wlr_box sbox;
	wlr_xdg_surface_get_geometry(c->xdg_surface, &sbox);
	if (mode == CurMove) {
		grabsx = cursor->x - c->x;
		grabsy = cursor->y - c->y;
	} else {
		grabsx = cursor->x + sbox.x;
		grabsy = cursor->y + sbox.y;
	}
}


Do not follow this link