feat: focus empty monitor when clicked

This commit is contained in:
Rutherther 2024-05-07 19:14:32 +02:00
parent 2b4893a0ad
commit dc2399d105

1
dwl.c
View File

@ -607,6 +607,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;