freebsd-ports/cad/PrusaSlicer/files/patch-src_slic3r_GUI_TopBar.cpp
Teodor Sigaev ea2855f6a7
cad/PrusaSlicer: Update to 2.8.1
PR:		282145
2024-10-29 03:13:29 +08:00

11 lines
523 B
C++

--- src/slic3r/GUI/TopBar.cpp.orig 2024-10-15 09:10:59 UTC
+++ src/slic3r/GUI/TopBar.cpp
@@ -52,7 +52,7 @@ TopBarItemsCtrl::Button::Button(wxWindow* parent, cons
Bind(wxEVT_LEAVE_WINDOW, [this](wxMouseEvent& event) { set_hovered(false); event.Skip(); });
Bind(wxEVT_PAINT, [this](wxPaintEvent&) { render(); });
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
Bind(wxEVT_LEFT_UP, [this](wxMouseEvent& event) {
#else
Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& event) {