a break literally do what it says

This commit is contained in:
pony-montana 2023-09-09 11:31:04 +00:00 committed by GitHub
parent 7432d9b5da
commit 2ddbd4bda4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

6
dwl.c
View File

@ -584,9 +584,6 @@ buttonpress(struct wl_listener *listener, void *data)
cursor_mode = CurPressed; cursor_mode = CurPressed;
if (locked) if (locked)
break; break;
/*
SOMETHING BROKEN HERE.
Eliminate this part of code solved the problems described in issue #476.
Change focus if the button was _pressed_ over a client Change focus if the button was _pressed_ over a client
xytonode(cursor->x, cursor->y, NULL, &c, NULL, NULL, NULL); xytonode(cursor->x, cursor->y, NULL, &c, NULL, NULL, NULL);
@ -602,7 +599,8 @@ Eliminate this part of code solved the problems described in issue #476.
return; return;
} }
} }
break; /* Eliminate this "break" solved the problems described in issue #476. Tautologically found "what was broken here".
break;
*/ */
case WLR_BUTTON_RELEASED: case WLR_BUTTON_RELEASED:
/* If you released any buttons, we exit interactive move/resize mode. */ /* If you released any buttons, we exit interactive move/resize mode. */