mirror of
https://codeberg.org/dwl/dwl.git
synced 2024-12-26 11:16:30 +00:00
feat: focus empty monitor when clicked
This commit is contained in:
parent
2db0a2e8ef
commit
7d8c3ea369
1 changed files with 1 additions and 0 deletions
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