-
Notifications
You must be signed in to change notification settings - Fork 323
Improved the feature #25 #35
base: master
Are you sure you want to change the base?
Conversation
The solution was taken from http://stackoverflow.com/a/24316767
(tested on 10.10.4, Java 1.8) Changed the behavior of a window minimizing - now if the window is closed, the application is closed as well.
Unfortunately AWT events work slightly different on these platforms. When TrayIcons are used, random errors might appear.
…nt better; Forgot to save the configuration, when the main window is closed;
A small comment regarding the pull request: it seems that the TrayIcon feature is quite tricky in different platforms. I hope at least I solved it. |
Many thanks, I will check all this when I have some time |
Ok, thanks. |
I prefer this version (app getting iconified when minimized). I tested it and it works well on Windows + GNOME (well, there's no minimize button), however it does not seem to work on a Mac OSX (JRE 1.8.0_60-b27), when pressing the minimize button it goes to the dock and disappears right away |
Oh, I really sorry again. |
Sorry too, I don't have time to investigate also. If this is too complicated or involves writing too much code, maybe we can just disable the feature for mac users (we need to make sure it works well on Linux Desktop Environments first) |
It doesn't require much code, or at least my last version. This kind of low-level stuff requires some magic and luck. |
Hello @Nilhcem,
I have reviewed my feature and performed a couple of changes. I hope this will work fine on your machine:
Thank you in advance,
Vest