~sircmpwn/wio

All buttons open the menu v1 PROPOSED

Leon Plickat
Leon Plickat: 1
 All buttons open the menu

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/wio/patches/6185/mbox | git am -3
Learn more about email & git

[PATCH] All buttons open the menu Export this patch

Leon Plickat
---
 input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/input.c b/input.c
index f90ee94..ab26804 100644
--- a/input.c
+++ b/input.c
@@ -281,7 +281,7 @@ static void handle_button_internal(
 	int x1, x2, y1, y2;
 	switch (server->input_state) {
 	case INPUT_STATE_NONE:
-		if (event->state == WLR_BUTTON_PRESSED && event->button == BTN_RIGHT) {
+		if (event->state == WLR_BUTTON_PRESSED) {
 			// TODO: Open over the last-used menu item
 			server->input_state = INPUT_STATE_MENU;
 			server->menu.x = server->cursor->x;
-- 
2.22.0
View this thread in the archives