gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hide: when AppIcon is supressed


From: Wolfgang Lux
Subject: Re: Hide: when AppIcon is supressed
Date: Tue, 29 Mar 2011 10:35:41 +0200

Germán Arias wrote:

Attached a patch to NSApplication, to minimize all windows when the user
hide the app (or when is deactivated) if the AppIcon is suppressed. I

know this is not the most elegant solution but avoid loss the app. I
think the idea of have a miniaturized AppIcon is good, but for some
reason, this AppIcon don't miniaturize after call -miniaturize:. Of
course the user can minimize that AppIcon, but isn't the idea. Also I
added "#ifdef _MINGW32_ [self miniaturizeAll: self]; #else...." in
method deactivate:, just for be consistently.
<icon.patch>_______________________________________________
Gnustep-dev mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Miniaturizing all windows when an application is hidden is a reasonable workaround to avoid losing the app when there is no app icon.

However, miniaturizing all windows of an application when it is deactivated is definitely a BAD idea. When the user switches to another application (which is when -deactivate: is called) the application's windows should remain visible for the user. Of course, there is a problem when an application has no main window when you switch to another application, but I think that the application will terminate in that case (recall that panels in general are not supposed to be miniaturized).

Wolfgang




reply via email to

[Prev in Thread] Current Thread [Next in Thread]