summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRutherther <rutherther@proton.me>2024-05-07 19:14:32 +0200
committerLeonardo Hernández Hernández <leohdz172@proton.me>2024-07-03 13:35:29 -0600
commit7d8c3ea3695de248aa1975def5839b0ffd34d198 (patch)
treef0fe910237d9acdaadb60b712031dfcbc39fdb36
parent2db0a2e8ef57acceeb3331a312dc3388a1710b29 (diff)
feat: focus empty monitor when clicked
-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;