~sircmpwn/wio

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] All buttons open the menu

Leon Plickat
Details
Message ID
<20190614233146.1601-1-leonhenrik.plickat@stud.uni-goettingen.de>
Sender timestamp
1560555107
DKIM signature
missing
Download raw message
Patch: +1 -1
---
 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