~goleo/wio

91486a3fb23e742ed3cc17cee9d933b85dc17ea8 — Leonid Bobrov 1 year, 3 months ago 43de418 master
Menu is supposed to close after releasing button 3
1 files changed, 3 insertions(+), 5 deletions(-)

M input.c
M input.c => input.c +3 -5
@@ 303,11 303,9 @@ static void handle_button_internal(
		if (wlr_box_contains_point(
					&menu_box, server->cursor->x, server->cursor->y)) {
			menu_handle_button(server, event);
		} else {
			if (event->state == WLR_BUTTON_PRESSED) {
				server->input_state = INPUT_STATE_NONE;
				server->menu.x = server->menu.y = -1;
			}
		} else if (event->state != WLR_BUTTON_PRESSED) {
			server->input_state = INPUT_STATE_NONE;
			server->menu.x = server->menu.y = -1;
		}
		break;
	case INPUT_STATE_NEW_START: