diff --git a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java index ea18c4c6..d3e68cc0 100644 --- a/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java +++ b/platform-independent/java/gui/src/main/java/com/lyndir/masterpassword/gui/view/UserContentPanel.java @@ -650,14 +650,8 @@ public class UserContentPanel extends JPanel implements MasterPassword.Listener, Res.ui( () -> { Window window = SwingUtilities.windowForComponent( UserContentPanel.this ); - if (window instanceof Frame) { + if (window instanceof Frame) ((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 ) ); } ); } ); }