feat: focus empty monitor when clicked

This commit is contained in:
Rutherther
2024-05-07 19:14:32 +02:00
committed by Leonardo Hernández Hernández
parent 2db0a2e8ef
commit 7d8c3ea369

1
dwl.c
View File

@@ -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;