feat: focus empty monitor when clicked
This commit is contained in:
parent
2db0a2e8ef
commit
7d8c3ea369
1
dwl.c
1
dwl.c
|
@ -604,6 +604,7 @@ buttonpress(struct wl_listener *listener, void *data)
|
||||||
switch (event->state) {
|
switch (event->state) {
|
||||||
case WLR_BUTTON_PRESSED:
|
case WLR_BUTTON_PRESSED:
|
||||||
cursor_mode = CurPressed;
|
cursor_mode = CurPressed;
|
||||||
|
selmon = xytomon(cursor->x, cursor->y);
|
||||||
if (locked)
|
if (locked)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue