Prevent hidden windows from being shown without gdk's control when

2008-02-24  Richard Hult  <richard@imendio.com>

	* gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being
	shown without gdk's control when clicking the dock icon.

svn path=/trunk/; revision=19638
This commit is contained in:
Richard Hult
2008-02-24 17:51:22 +00:00
committed by Richard Hult
parent 4dbd9d23d7
commit 6dc6aaeaf1
2 changed files with 16 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-02-24 Richard Hult <richard@imendio.com>
* gdk/quartz/GdkQuartzWindow.c: Prevent hidden windows from being
shown without gdk's control when clicking the dock icon.
2008-02-24 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkprivate-quartz.h:

View File

@ -79,9 +79,18 @@
-(void)windowDidBecomeMain:(NSNotification *)aNotification
{
GdkWindow *window;
GdkWindow *window = [[self contentView] gdkWindow];
if (![self isVisible])
{
/* Note: This is a hack needed because for unknown reasons, hidden
* windows get shown when clicking the dock icon when the application
* is not already active.
*/
[self orderOut:nil];
return;
}
window = [[self contentView] gdkWindow];
_gdk_quartz_window_did_become_main (window);
}