"Popup in operator list does not work on Linux"
Username
New Altair Community Member
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
-
Hi,
thanks for sending this in. We will have a look into this and fix the issue.
Regards,
Tobias0