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;