From 7d8c3ea3695de248aa1975def5839b0ffd34d198 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Tue, 7 May 2024 19:14:32 +0200 Subject: feat: focus empty monitor when clicked --- dwl.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3