aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2020-04-26 21:42:45 -0500
committerDevin J. Pohly <djpohly@gmail.com>2020-04-26 21:42:45 -0500
commitce5d116efd54ee82602a5768d7f50fa7888efdf9 (patch)
tree4d6b79d50c1fd62c1f0139e5db8598ca1636857a
parentaef34a5e7e19cdcec8d7303e1861ba3024101acc (diff)
move comment where it's more relevant
-rw-r--r--dwl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwl.c b/dwl.c
index 7e20f71..3898af3 100644
--- a/dwl.c
+++ b/dwl.c
@@ -692,11 +692,6 @@ motionnotify(uint32_t time)
grabc->w, grabc->h, 1);
return;
} else if (cursor_mode == CurResize) {
- /*
- * Note that I took some shortcuts here. In a more fleshed-out
- * compositor, you'd wait for the client to prepare a buffer at
- * the new size, then commit any movement that was prepared.
- */
resize(grabc, grabc->x, grabc->y,
cursor->x - grabc->x, cursor->y - grabc->y, 1);
return;
@@ -932,6 +927,11 @@ rendermon(struct wl_listener *listener, void *data)
void
resize(Client *c, int x, int y, int w, int h, int interact)
{
+ /*
+ * Note that I took some shortcuts here. In a more fleshed-out
+ * compositor, you'd wait for the client to prepare a buffer at
+ * the new size, then commit any movement that was prepared.
+ */
struct wlr_box *bbox = interact ? &sgeom : &c->mon->w;
c->x = x;
c->y = y;