mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-02 06:50:37 +08:00
Attempt to fix 3D scene popup menu on Linux
This commit is contained in:
parent
05baa4b743
commit
3aee6ddc4c
@ -2451,8 +2451,15 @@ void Plater::priv::on_right_click(Vec2dEvent& evt)
|
|||||||
|
|
||||||
sidebar->obj_list()->append_menu_item_settings(menu);
|
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());
|
q->PopupMenu(menu, (int)evt.data.x(), (int)evt.data.y());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Plater::priv::on_wipetower_moved(Vec3dEvent &evt)
|
void Plater::priv::on_wipetower_moved(Vec3dEvent &evt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user