The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Popup in operator list does not work on Linux"
Hi,
on Linux systems the popup menu of the operator list (at the right) does not work. I guess the reason is that in the OperatorList class the mouse event is checked if it is a popup trigger:
on Linux systems the popup menu of the operator list (at the right) does not work. I guess the reason is that in the OperatorList class the mouse event is checked if it is a popup trigger:
public void mouseReleased(MouseEvent e) {This is done when a mouse released event gets fired. But the popup trigger on Linux is not "mouse released" but "mouse pressed" (I think). That's why the popup is never shown. So, this issue should be solved by adding the following lines (not tested!):
selectedOperator = getSelectedOperator();
evaluatePopup(e);
}
/**
* Checks if the given mouse event is a popup trigger and creates a new
* popup menu if necessary.
*/
private void evaluatePopup(MouseEvent e) {
if (e.isPopupTrigger()) {
createOperatorPopupMenu().show(this, e.getX(), e.getY());
}
}
public void mousePressed(MouseEvent e) {
selectedOperator = getSelectedOperator();
evaluatePopup(e);
}
Tagged:
0
Answers
thanks for sending this in. We will have a look into this and fix the issue.
Regards,
Tobias