mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-27 03:46:17 -06:00
Linux: ensure that old LinuxPopupMenuCanceler window listener is removed before adding a new one (issue #962)
(did not yet happen...)
This commit is contained in:
@@ -70,6 +70,8 @@ class LinuxPopupMenuCanceler
|
||||
}
|
||||
|
||||
private void addWindowListeners( MenuElement selected ) {
|
||||
removeWindowListeners();
|
||||
|
||||
// see BasicPopupMenuUI.MouseGrabber.grabWindow()
|
||||
Component invoker = selected.getComponent();
|
||||
if( invoker instanceof JPopupMenu )
|
||||
|
||||
Reference in New Issue
Block a user