From 0a4319720380356f7fdd0c824d53cb9754f219e2 Mon Sep 17 00:00:00 2001
From: "Devin J. Pohly" <djpohly@gmail.com>
Date: Wed, 22 Apr 2020 12:00:10 -0500
Subject: grabsx/y are only used by move now

---
 dwl.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/dwl.c b/dwl.c
index 54aad07..da0e822 100644
--- a/dwl.c
+++ b/dwl.c
@@ -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;
 	}
 }
 
-- 
cgit v1.2.3