From 7f00ae8c83960ebf8ca88420c676fa0ced5373f6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Dec 2022 21:10:55 +0100 Subject: [PATCH] Fix mouse buttons order on Wayland. --- profiler/src/BackendWayland.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp index 51924e34..cadc04eb 100644 --- a/profiler/src/BackendWayland.cpp +++ b/profiler/src/BackendWayland.cpp @@ -90,8 +90,8 @@ static void PointerButton( void*, struct wl_pointer* pointer, uint32_t serial, u switch( button ) { case BTN_LEFT: b = 0; break; - case BTN_MIDDLE: b = 1; break; - case BTN_RIGHT: b = 2; break; + case BTN_MIDDLE: b = 2; break; + case BTN_RIGHT: b = 1; break; default: return; } ImGuiIO& io = ImGui::GetIO();