Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVojtech Kral <vojtech@kral.hk>2019-02-25 12:35:16 +0300
committerVojtech Kral <vojtech@kral.hk>2019-02-25 12:35:51 +0300
commit3aee6ddc4c6930a288de5a7e3d272976728f85a7 (patch)
treec52c2dbaf90df8d476b649497f24634f79ffb0bb /src
parent05baa4b7432dfbb7737abe1dcdefd8867623d729 (diff)
Attempt to fix 3D scene popup menu on Linux
Diffstat (limited to 'src')
-rw-r--r--src/slic3r/GUI/Plater.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp
index c368c4a07..e917269d2 100644
--- a/src/slic3r/GUI/Plater.cpp
+++ b/src/slic3r/GUI/Plater.cpp
@@ -2451,8 +2451,15 @@ void Plater::priv::on_right_click(Vec2dEvent& evt)
sidebar->obj_list()->append_menu_item_settings(menu);
- if (q != nullptr)
+ if (q != nullptr) {
+#ifdef __linux__
+ // For some reason on Linux the menu isn't displayed if position is specified
+ // (even though the position is sane).
+ q->PopupMenu(menu);
+#else
q->PopupMenu(menu, (int)evt.data.x(), (int)evt.data.y());
+#endif
+ }
}
void Plater::priv::on_wipetower_moved(Vec3dEvent &evt)