mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-27 03:36:31 +00:00
grabsx/y are only used by move now
This commit is contained in:
parent
749880cedd
commit
0a43197203
1 changed files with 0 additions and 5 deletions
5
dwl.c
5
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue