From fe0acc100339198980132a859bae17c7ec6330c1 Mon Sep 17 00:00:00 2001 From: Dery Almas Date: Sun, 15 Feb 2026 09:28:52 +0100 Subject: [PATCH] Wayland: Swap backward and forward mouse buttons They were bound in reverse. No idea how I originally chose which was which. This patch also orders the switch cases by their underlying codes: left, right, middle, side, extra. --- platform/linuxbsd/wayland/wayland_thread.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index c2cefe629f..97d5147fbb 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -1853,19 +1853,19 @@ void WaylandThread::_wl_pointer_on_button(void *data, struct wl_pointer *wl_poin button_pressed = MouseButton::LEFT; break; - case BTN_MIDDLE: - button_pressed = MouseButton::MIDDLE; - break; - case BTN_RIGHT: button_pressed = MouseButton::RIGHT; break; - case BTN_EXTRA: - button_pressed = MouseButton::MB_XBUTTON1; + case BTN_MIDDLE: + button_pressed = MouseButton::MIDDLE; break; case BTN_SIDE: + button_pressed = MouseButton::MB_XBUTTON1; + break; + + case BTN_EXTRA: button_pressed = MouseButton::MB_XBUTTON2; break;