"Popup in operator list does not work on Linux"

Username
Username New Altair Community Member
edited November 5 in Community Q&A
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:
	public void mouseReleased(MouseEvent e) {
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());
}
}
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!):
	public void mousePressed(MouseEvent e) {
selectedOperator = getSelectedOperator();
evaluatePopup(e);
}

Answers

  • TobiasMalbrecht
    TobiasMalbrecht New Altair Community Member
    Hi,

    thanks for sending this in. We will have a look into this and fix the issue.

    Regards,
    Tobias