summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dwl.c b/dwl.c
index 9d8317e..e2fd223 100644
--- a/dwl.c
+++ b/dwl.c
@@ -604,6 +604,7 @@ buttonpress(struct wl_listener *listener, void *data)
switch (event->state) {
case WLR_BUTTON_PRESSED:
cursor_mode = CurPressed;
+ selmon = xytomon(cursor->x, cursor->y);
if (locked)
break;