diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2020-04-22 12:00:10 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2020-04-22 12:00:10 -0500 |
commit | 0a4319720380356f7fdd0c824d53cb9754f219e2 (patch) | |
tree | 39ac10cfcd948e830ef10df7c9302c910b24fb77 | |
parent | 749880cedd052ed1b8c0e6b979778077084d6d45 (diff) |
grabsx/y are only used by move now
-rw-r--r-- | dwl.c | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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; } } |