2
0

Clean up iconifying on copy.

This commit is contained in:
Maarten Billemont 2018-07-31 15:31:47 -04:00
parent c2c4fb18bf
commit 36a7c7f423

View File

@ -650,14 +650,8 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener,
Res.ui( () -> { Res.ui( () -> {
Window window = SwingUtilities.windowForComponent( UserContentPanel.this ); Window window = SwingUtilities.windowForComponent( UserContentPanel.this );
if (window instanceof Frame) { if (window instanceof Frame)
((Frame) window).setExtendedState( Frame.ICONIFIED ); ((Frame) window).setExtendedState( Frame.ICONIFIED );
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_DEACTIVATED ) );
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_ICONIFIED ) );
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_LOST_FOCUS ) );
window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_CLOSED ) );
}
// window.dispatchEvent( new WindowEvent( window, WindowEvent.WINDOW_ICONIFIED ) );
} ); } );
} ); } );
} }