"Popup in operator list does not work on Linux"

UsernameUsername Member Posts: 39 Maven
edited May 2019 in Help
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

  • TobiasMalbrechtTobiasMalbrecht Moderator, Employee, Member Posts: 294 RM Product Management
    Hi,

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

    Regards,
    Tobias
Sign In or Register to comment.