From 391ba558a631f4fc22a805b47faab2f96bf561ce Mon Sep 17 00:00:00 2001 From: Tolik Pylypchuk Date: Sun, 22 Sep 2024 23:35:45 +0300 Subject: [PATCH] Fix button 2 and 3 when releasing the mouse button on Linux --- src/x11/dispatch_event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11/dispatch_event.c b/src/x11/dispatch_event.c index bf6147b2..f8f47685 100644 --- a/src/x11/dispatch_event.c +++ b/src/x11/dispatch_event.c @@ -401,7 +401,7 @@ bool dispatch_mouse_press(uint64_t timestamp, XButtonEvent * const x_event) { static bool dispatch_mouse_button_released(XButtonReleasedEvent * const x_event) { bool consumed = false; - switch (button_map_lookup(x_event->button)) { + switch (x_event->button) { case Button1: x_event->button = MOUSE_BUTTON1; unset_modifier_mask(MASK_BUTTON1);