Change comments upon request of @fredkiefer.

This commit is contained in:
Sergii Stoian 2019-04-06 01:23:17 +03:00
parent 07dcc41ad0
commit f5bcf3019b
3 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
2019-04-06 Sergii Stoian <stoyan255@ukr.net>
* Source/NSApplication.m (hide:): Change comment before call to `hidwindow`.
* Source/GSDisplayServer.m (hidewindow:): fixes to return value and type.
Change comment.
2019-04-05 Sergii Stoian <stoyan255@gmail.com>

View file

@ -601,7 +601,8 @@ GSCurrentServer(void)
[self subclassResponsibility: _cmd];
}
/** Hides all application windows */
/** Ask the window manager to hide all the application windows for us.
Return whether they have been hidden. */
- (BOOL) hidewindow: (int) win
{
return NO;

View file

@ -2496,9 +2496,8 @@ image.</p><p>See Also: -applicationIconImage</p>
[_hidden_main resignMainWindow];
}
// Sends -hidewindow: to the main menu. If window manager supports
// _GNUSTEP_WM_HIDE_APP atom - call succeeds - our windows will be
// hidden by window manager, next application should be activated.
/** Ask the window manager to hide all the application windows for us.
Return whether they have been hidden. */
win = [[self mainMenu] window];
if ([GSServerForWindow(win) hidewindow: [win windowNumber]] == NO)
{